Fixed a core dump in monitor mode in countersec.c
This commit is contained in:
18
countersec.c
18
countersec.c
@ -184,13 +184,17 @@ static int SecCtrCheckStatus(void *pData, SConnection *pCon)
|
|||||||
fControl = v.v.doubleValue;
|
fControl = v.v.doubleValue;
|
||||||
} else {
|
} else {
|
||||||
node = GetHipadabaNode(self->pDes->parNode,"values");
|
node = GetHipadabaNode(self->pDes->parNode,"values");
|
||||||
assert(node != NULL);
|
if(node != NULL) {
|
||||||
/*
|
/*
|
||||||
The 1 below is only correct for PSI where only the first
|
This can be NULL if the counter is a HM. The values does not
|
||||||
monitor can be the control monitor. Elsewhere this must be the
|
exist and fControl is useless
|
||||||
control monitor channel
|
|
||||||
*/
|
The 1 below is only correct for PSI where only the first
|
||||||
fControl = v.v.intArray[1];
|
monitor can be the control monitor. Elsewhere this must be the
|
||||||
|
control monitor channel
|
||||||
|
*/
|
||||||
|
fControl = v.v.intArray[1];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user