Module: ngircd.git Branch: master Commit: dbfe1beca83a80c7fc9e25470a75bca78f64d634 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=dbfe1...
Author: Alexander Barton alex@barton.de Date: Tue Jan 20 22:49:23 2015 +0100
Auth PING: The numeric ID is a "long", use atol()
---
src/ngircd/irc-login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index 7ad1cb7..fbb50ed 100644 --- a/src/ngircd/irc-login.c +++ b/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);