repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 33c2d5e4e255f314d5d7136d8edeb662128bd79a:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 33c2d5e4e255f314d5d7136d8edeb662128bd79a
Author: Federico G. Schwindt 
Date:   Thu Sep 5 13:07:19 2013 +0100

    Move the IRC_SetPenalty() call after the asserts

diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 6013fa0c1bff4a6640a096a7fbb729c16fcbb335..
index ..ea0ed4e58e481e5503a99510341648276be9b940 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) {

-----END OF PAGE-----