neozeed ircu2.9.32-linux-hacks.diff
This commit is contained in:
@@ -27,6 +27,7 @@ static char sccsid[] = "@(#)s_auth.c 1.18 4/18/94 (C) 1992 Darren Reed";
|
||||
#include "res.h"
|
||||
#include "numeric.h"
|
||||
#include "patchlevel.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -146,7 +147,7 @@ aClient *cptr;
|
||||
{
|
||||
struct sockaddr_in us, them;
|
||||
char authbuf[32];
|
||||
int ulen, tlen;
|
||||
socklen_t ulen, tlen;
|
||||
|
||||
Debug((DEBUG_NOTICE,"write_authports(%x) fd %d authfd %d stat %d",
|
||||
cptr, cptr->fd, cptr->authfd, cptr->status));
|
||||
@@ -154,9 +155,11 @@ aClient *cptr;
|
||||
if (getsockname(cptr->fd, (struct sockaddr *)&us, &ulen) ||
|
||||
getpeername(cptr->fd, (struct sockaddr *)&them, &tlen))
|
||||
{
|
||||
Debug((DEBUG_NOTICE, "auth get{sock,peer}name error for %s: ",
|
||||
get_client_name(cptr, TRUE), strerror(errno)));
|
||||
#ifdef USE_SYSLOG
|
||||
syslog(LOG_ERR, "auth get{sock,peer}name error for %s:%m",
|
||||
get_client_name(cptr, TRUE));
|
||||
syslog(LOG_ERR, "auth get{sock,peer}name error for %s: ",
|
||||
get_client_name(cptr, TRUE), strerror(errno));
|
||||
#endif
|
||||
goto authsenderr;
|
||||
}
|
||||
@@ -218,7 +221,7 @@ Reg1 aClient *cptr;
|
||||
|
||||
cptr->lasttime = now;
|
||||
if ((len > 0) && (cptr->count != (sizeof(cptr->buffer) - 1)) &&
|
||||
(sscanf(cptr->buffer, "%hd , %hd : USERID : %*[^:]: %10s",
|
||||
(sscanf(cptr->buffer, "%hu , %hu : USERID : %*[^:]: %10s",
|
||||
&remp, &locp, ruser) == 3))
|
||||
{
|
||||
s = rindex(cptr->buffer, ':');
|
||||
|
||||
Reference in New Issue
Block a user