Commit d7c39e88 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

msg_parser_util.c: fix crash in msg_make() if it runs out of memory

parent 298e2ef1
......@@ -1974,6 +1974,8 @@ msg_t *msg_make(msg_mclass_t const *mc, int flags,
return NULL;
msg = msg_create(mc, flags);
if (msg == NULL)
return NULL;
su_home_preload(msg_home(msg), 1, len + 1024);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment