Fixed an issue where an unresetted geterror in combination with a null connection causes
to many log messages.
This commit is contained in:
@ -768,7 +768,9 @@ static hdbCallbackReturn SctMainCallback(Hdb * node, void *userData,
|
|||||||
geterror = GetHdbProp(node, "geterror");
|
geterror = GetHdbProp(node, "geterror");
|
||||||
if (geterror != NULL) {
|
if (geterror != NULL) {
|
||||||
snprintf(error,255,"ERROR: %s", geterror);
|
snprintf(error,255,"ERROR: %s", geterror);
|
||||||
SCWrite(con, error, eError);
|
if(con != NULL){
|
||||||
|
SCWrite(con, error, eError);
|
||||||
|
}
|
||||||
if (mm->v->dataType == HIPTEXT) {
|
if (mm->v->dataType == HIPTEXT) {
|
||||||
if (mm->v->v.text != NULL) {
|
if (mm->v->v.text != NULL) {
|
||||||
free(mm->v->v.text);
|
free(mm->v->v.text);
|
||||||
|
Reference in New Issue
Block a user