Mercurial > pidgin
changeset 29727:62cc2156961f
simple: sipmsg_free() can't handle NULL. Reported by Jochen
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 14 Apr 2010 19:57:09 +0000 |
parents | 0665d7eff0a3 |
children | a3b78a080a5b |
files | libpurple/protocols/simple/simple.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/simple/simple.c Tue Apr 13 06:03:35 2010 +0000 +++ b/libpurple/protocols/simple/simple.c Wed Apr 14 19:57:09 2010 +0000 @@ -1671,8 +1671,10 @@ buffer[len] = '\0'; purple_debug_info("simple", "\n\nreceived - %s\n######\n%s\n#######\n\n", ctime(&currtime), buffer); msg = sipmsg_parse_msg(buffer); - if(msg) process_input_message(sip, msg); - sipmsg_free(msg); + if (msg) { + process_input_message(sip, msg); + sipmsg_free(msg); + } } }