X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-server.c;h=f9182d984ca9c2c6f1f743b419a198d89b31ada7;hp=2ce4fadd8ef8430a45155e824ebbeec501a6717a;hb=f37600ee01f6cfd86e8fa80f77ee26ebaf3012b2;hpb=097c72aa65d9914d688eaece718648ca060e287a diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index 2ce4fadd..f9182d98 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -80,7 +80,8 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req ) Conn_Close( Client_Conn( Client ), NULL, "Server not configured here", true); return DISCONNECTED; } - if( strcmp( Client_Password( Client ), Conf_Server[i].pwd_in ) != 0 ) + if( strcmp( Conn_Password( Client_Conn( Client ) ), + Conf_Server[i].pwd_in ) != 0 ) { /* wrong password */ Log( LOG_ERR, "Connection %d: Got bad password from server \"%s\"!", Client_Conn( Client ), Req->argv[0] );