mirror of
https://github.com/osmarks/ngircd.git
synced 2025-06-18 06:14:09 +00:00
Auth PING: The numeric ID is a "long", use atol()
This commit is contained in:
parent
6bdae55177
commit
dbfe1beca8
@ -832,7 +832,7 @@ IRC_PONG(CLIENT *Client, REQUEST *Req)
|
|||||||
if (auth_ping) {
|
if (auth_ping) {
|
||||||
LogDebug("AUTH PONG: waiting for token \"%ld\", got \"%s\" ...",
|
LogDebug("AUTH PONG: waiting for token \"%ld\", got \"%s\" ...",
|
||||||
auth_ping, Req->argv[0]);
|
auth_ping, Req->argv[0]);
|
||||||
if (auth_ping == atoi(Req->argv[0])) {
|
if (auth_ping == atol(Req->argv[0])) {
|
||||||
Conn_SetAuthPing(conn, 0);
|
Conn_SetAuthPing(conn, 0);
|
||||||
if (Client_Type(Client) == CLIENT_WAITAUTHPING)
|
if (Client_Type(Client) == CLIENT_WAITAUTHPING)
|
||||||
Login_User(Client);
|
Login_User(Client);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user