mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
controlapi.cpp: fix segfault if the bouquet number passed is less than 0
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0a4fffd038
Author: GetAway <get-away@t-online.de>
Date: 2023-04-09 (Sun, 09 Apr 2023)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1458,6 +1458,8 @@ void CControlAPI::GetBouquetCGI(CyhookHandler *hh)
|
|||||||
if (!hh->ParamList["bouquet"].empty()) {
|
if (!hh->ParamList["bouquet"].empty()) {
|
||||||
// list for given bouquet
|
// list for given bouquet
|
||||||
BouquetNr = atoi(hh->ParamList["bouquet"].c_str());
|
BouquetNr = atoi(hh->ParamList["bouquet"].c_str());
|
||||||
|
if (BouquetNr < 0)
|
||||||
|
BouquetNr = 0;
|
||||||
if (BouquetNr > 0)
|
if (BouquetNr > 0)
|
||||||
BouquetNr--;
|
BouquetNr--;
|
||||||
if((BouquetNr > 0) && (BouquetNr >= bsize))
|
if((BouquetNr > 0) && (BouquetNr >= bsize))
|
||||||
|
Reference in New Issue
Block a user