Commit d7c39e88 authored by Pekka Pessi's avatar Pekka Pessi

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

darcs-hash:20070326155544-55b16-699572d213b72bda2e27a341d7c2ae9b3616a721.gz
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