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

Comparing ircd-hybrid/branches/8.2.x/src/auth.c (file contents):
Revision 5496 by michael, Sun Feb 8 18:07:48 2015 UTC vs.
Revision 5721 by michael, Sun Mar 22 11:50:46 2015 UTC

# Line 335 | Line 335 | auth_connect_callback(fde_t *fd, int err
335    struct irc_ssaddr us;
336    struct irc_ssaddr them;
337    char authbuf[16];
338 +  ssize_t len = 0;
339    socklen_t ulen = sizeof(struct irc_ssaddr);
340    socklen_t tlen = sizeof(struct irc_ssaddr);
341    uint16_t uport, tport;
# Line 362 | Line 363 | auth_connect_callback(fde_t *fd, int err
363    remove_ipv6_mapping(&us);
364    remove_ipv6_mapping(&them);
365  
366 <  snprintf(authbuf, sizeof(authbuf), "%u, %u\r\n", tport, uport);
366 >  len = snprintf(authbuf, sizeof(authbuf), "%u, %u\r\n", tport, uport);
367  
368 <  if (send(fd->fd, authbuf, strlen(authbuf), 0) == -1)
368 >  if (send(fd->fd, authbuf, len, 0) != len)
369    {
370      auth_error(auth);
371      return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines