Skip to content

Commit

Permalink
oim: handle malformed data in process_body_receive
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information
scontini76 authored and felipec committed Dec 13, 2009
1 parent 5ee1799 commit e0fa9a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pn_oim.c
Expand Up @@ -576,7 +576,8 @@ process_body_receive (OimRequest *oim_request,
gchar *end;
cur += 2;
end = strstr (cur, "\r\n\r\n");
*end = '\0';
if (end)
*end = '\0';
message = (gchar *) purple_base64_decode (cur, NULL);
}

Expand Down

0 comments on commit e0fa9a5

Please sign in to comment.