/[svn]/ircd-hybrid/src/s_auth.c
ViewVC logotype

Diff of /ircd-hybrid/src/s_auth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 395 by adx, Tue Oct 4 16:09:51 2005 UTC revision 396 by nenolod, Fri Feb 3 22:00:28 2006 UTC
# Line 533  read_auth_reply(fde_t *fd, void *data) Line 533  read_auth_reply(fde_t *fd, void *data)
533    int count;    int count;
534    char buf[AUTH_BUFSIZ + 1]; /* buffer to read auth reply into */    char buf[AUTH_BUFSIZ + 1]; /* buffer to read auth reply into */
535    
536    len = recv(fd->fd, buf, AUTH_BUFSIZ, 0);    /* Why?
537         * Well, recv() on many POSIX systems is a per-packet operation,
538       * and we do not necessarily want this, because on lowspec machines,
539       * the ident response may come back fragmented, thus resulting in an
540       * invalid ident response, even if the ident response was really OK.
541       *
542       * So PLEASE do not change this code to recv without being aware of the
543       * consequences.
544       *
545       *    --nenolod
546       */
547    #ifndef _WIN32
548      len = read(fd->fd, buf, AUTH_BUFSIZ);
549    #else
550      len = recv(fd->fd, buf, AUTH_BUFSIZ, 0);  
551    #endif
552    
553    if (len < 0)    if (len < 0)
554    {    {
555  #ifdef _WIN32  #ifdef _WIN32

Legend:
Removed from v.395  
changed lines
  Added in v.396

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26