Origin commit data
------------------
Branch: ni/coolstream
Commit: df89326f60
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-30 (Fri, 30 Dec 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2016-12-30 17:04:11 +01:00
parent 3306c94002
commit 43207960b0

View File

@@ -77,7 +77,7 @@ diseq_test_param_t diseqc_test[] = {
bool CServiceScan::TestDiseqcConfig(int num)
{
if(num >= OPERATOR_MAX) {
if(num >= OPERATOR_MAX || num < 0) {
INFO("[fast scan] invalid operator %d", num);
return false;
}
@@ -218,7 +218,7 @@ bool CServiceScan::ScanFast()
{
fast_scan_type_t * fast_type = (fast_scan_type_t *) scan_arg;
fs_operator_t num = fast_type->op;
if(num >= OPERATOR_MAX) {
if(num >= OPERATOR_MAX || num < 0) {
INFO("[fast scan] invalid operator %d", num);
return false;
}
@@ -231,7 +231,7 @@ bool CServiceScan::ScanFast()
bool CServiceScan::ScanFast(int num, bool reload)
{
fast_scan_operator_t *op;
if(num >= OPERATOR_MAX) {
if(num >= OPERATOR_MAX || num < 0) {
INFO("[fast scan] invalid operator %d", num);
goto _err;
}