FS-11785 [esl] dead assignments in esl_event_serialize

null attribute in esl_buffer_read
	       null attribute in esl_event_base_add_header
	       null attribute in esl_recv_event
This commit is contained in:
Chris Rienzo authored and Andrey Volk committed 2019-07-17 20:22:11 +04:00
1 parent c776680c56
commit ca8fa0e1ff
3 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -1459,7 +1459,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
}
}
if ((cl = esl_event_get_header(handle->last_ievent, "content-length"))) {
if (beg && (cl = esl_event_get_header(handle->last_ievent, "content-length"))) {
handle->last_ievent->body = strdup(beg);
}