Avoid dereferencing potential null value
This commit is contained in:
parent
3217442d0e
commit
d7b139f3b4
|
@ -275,7 +275,7 @@ ESL_DECLARE(char *) esl_event_get_header_idx(esl_event_t *event, const char *hea
|
|||
}
|
||||
|
||||
return hp->value;
|
||||
} else if (!strcmp(header_name, "_body")) {
|
||||
} else if (header_name && !strcmp(header_name, "_body")) {
|
||||
return event->body;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue