ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/src/s_auth.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_auth.c (file contents):
Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 397 by nenolod, Fri Feb 3 22:08:10 2006 UTC

# Line 544 | Line 544 | read_auth_reply(fde_t *fd, void *data)
544    int count;
545    char buf[AUTH_BUFSIZ + 1]; /* buffer to read auth reply into */
546  
547 +  /* Why?
548 +   * Well, recv() on many POSIX systems is a per-packet operation,
549 +   * and we do not necessarily want this, because on lowspec machines,
550 +   * the ident response may come back fragmented, thus resulting in an
551 +   * invalid ident response, even if the ident response was really OK.
552 +   *
553 +   * So PLEASE do not change this code to recv without being aware of the
554 +   * consequences.
555 +   *
556 +   *    --nenolod
557 +   */
558 + #ifndef _WIN32
559 +  len = read(fd->fd, buf, AUTH_BUFSIZ);
560 + #else
561    len = recv(fd->fd, buf, AUTH_BUFSIZ, 0);
562 + #endif
563    
564    if (len < 0)
565    {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines