mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +00:00
Avoid dereferencing potential null value
This commit is contained in:
parent
9ce4be3daa
commit
5e7485ff20
@ -275,7 +275,7 @@ ESL_DECLARE(char *) esl_event_get_header_idx(esl_event_t *event, const char *hea
|
|||||||
}
|
}
|
||||||
|
|
||||||
return hp->value;
|
return hp->value;
|
||||||
} else if (!strcmp(header_name, "_body")) {
|
} else if (header_name && !strcmp(header_name, "_body")) {
|
||||||
return event->body;
|
return event->body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user