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

Comparing ircd-hybrid/trunk/src/auth.c (file contents):
Revision 8496 by michael, Thu Apr 5 12:46:00 2018 UTC vs.
Revision 8524 by michael, Tue Apr 24 19:55:30 2018 UTC

# Line 212 | Line 212 | auth_dns_callback(void *vptr, const stru
212  
213      if (namelength > HOSTLEN)
214        auth_sendheader(auth->client, REPORT_HOST_TOOLONG);
215 <    else if (!auth_verify_hostname(name))
215 >    else if (auth_verify_hostname(name) == 0)
216        auth_sendheader(auth->client, REPORT_HOST_INVALID);
217      else
218      {
# Line 230 | Line 230 | auth_dns_callback(void *vptr, const stru
230   static void
231   auth_error(struct AuthRequest *auth)
232   {
233 +  assert(auth);
234 +  assert(auth->fd);
235 +
236    ++ServerStats.is_abad;
237  
238    fd_close(auth->fd);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)