X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcnotify.c;h=fc3dd8b28f559fe7ebcb9155def0a18fab29ea43;hp=645f3a536f42543c2f49b09dda6aea569ae92c2f;hb=52e57c880aba9c5e89f59d962eb9af75670b76e0;hpb=ae1482a76c29db9fdcd6ed6cf63d312a37a5cb01 diff --git a/lib/silccore/silcnotify.c b/lib/silccore/silcnotify.c index 645f3a53..fc3dd8b2 100644 --- a/lib/silccore/silcnotify.c +++ b/lib/silccore/silcnotify.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2000 - 2005 Pekka Riikonen + Copyright (C) 2000 - 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -66,6 +66,8 @@ SilcNotifyPayload silc_notify_payload_parse(const unsigned char *payload, newp->args = silc_argument_payload_parse(buffer.data, silc_buffer_len(&buffer), newp->argc); + if (!newp->args) + goto err; silc_buffer_push(&buffer, 5); }