mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CControlAPI::GetBouquetCGI fix segfault
This commit is contained in:
@@ -966,6 +966,9 @@ void CControlAPI::GetBouquetCGI(CyhookHandler *hh) {
|
||||
BouquetNr = atoi(hh->ParamList["bouquet"].c_str());
|
||||
if (BouquetNr > 0)
|
||||
BouquetNr--;
|
||||
if((BouquetNr > 0) && (BouquetNr >= bsize))
|
||||
BouquetNr = bsize-1;
|
||||
|
||||
startBouquet = BouquetNr;
|
||||
bsize = BouquetNr+1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user