Commit Diff


commit - 6bdae55177bf3d8910a77bc0af14c0de3d4fd4c9
commit + dbfe1beca83a80c7fc9e25470a75bca78f64d634
blob - 7ad1cb7823e6cc81d31191a507bcc9d594a5b671
blob + fbb50edbd33617d4f70deda382f719c1ab744e08
--- src/ngircd/irc-login.c
+++ src/ngircd/irc-login.c
@@ -832,7 +832,7 @@ IRC_PONG(CLIENT *Client, REQUEST *Req)
 	if (auth_ping) {
 		LogDebug("AUTH PONG: waiting for token \"%ld\", got \"%s\" ...",
 			 auth_ping, Req->argv[0]);
-		if (auth_ping == atoi(Req->argv[0])) {
+		if (auth_ping == atol(Req->argv[0])) {
 			Conn_SetAuthPing(conn, 0);
 			if (Client_Type(Client) == CLIENT_WAITAUTHPING)
 				Login_User(Client);