diff options
| author | Alexander Barton <alex@barton.de> | 2015-01-20 22:49:23 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2015-01-20 22:49:23 +0100 |
| commit | dbfe1beca83a80c7fc9e25470a75bca78f64d634 (patch) | |
| tree | 9e855d0f7a462827ce4327f7c3fe9f5e6f7656e6 /src | |
| parent | 6bdae55177bf3d8910a77bc0af14c0de3d4fd4c9 (diff) | |
| download | ngircd-dbfe1beca83a80c7fc9e25470a75bca78f64d634.tar.gz ngircd-dbfe1beca83a80c7fc9e25470a75bca78f64d634.zip | |
Auth PING: The numeric ID is a "long", use atol()
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index 7ad1cb78..fbb50edb 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); |