mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CControlAPI::GetBouquetCGI fix segfault
Origin commit data
------------------
Commit: 733f7a5382
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-10-12 (Sat, 12 Oct 2013)
This commit is contained in:
@@ -966,6 +966,9 @@ void CControlAPI::GetBouquetCGI(CyhookHandler *hh) {
|
|||||||
BouquetNr = atoi(hh->ParamList["bouquet"].c_str());
|
BouquetNr = atoi(hh->ParamList["bouquet"].c_str());
|
||||||
if (BouquetNr > 0)
|
if (BouquetNr > 0)
|
||||||
BouquetNr--;
|
BouquetNr--;
|
||||||
|
if((BouquetNr > 0) && (BouquetNr >= bsize))
|
||||||
|
BouquetNr = bsize-1;
|
||||||
|
|
||||||
startBouquet = BouquetNr;
|
startBouquet = BouquetNr;
|
||||||
bsize = BouquetNr+1;
|
bsize = BouquetNr+1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user