From: Federico G. Schwindt Date: Thu, 5 Sep 2013 12:07:19 +0000 (+0100) Subject: Move the IRC_SetPenalty() call after the asserts X-Git-Tag: rel-21-rc1~20 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=33c2d5e4e255f314d5d7136d8edeb662128bd79a Move the IRC_SetPenalty() call after the asserts --- diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 6013fa0c..ea0ed4e5 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -718,11 +718,11 @@ IRC_SERVLIST(CLIENT *Client, REQUEST *Req) { CLIENT *c; - IRC_SetPenalty(Client, 1); - assert(Client != NULL); assert(Req != NULL); + IRC_SetPenalty(Client, 1); + _IRC_ARGC_LE_OR_RETURN_(Client, Req, 2) if (Req->argc < 2 || strcmp(Req->argv[1], "0") == 0) {