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

Comparing ircd-hybrid/trunk/src/conf.c (file contents):
Revision 8496 by michael, Thu Apr 5 12:46:00 2018 UTC vs.
Revision 8500 by michael, Thu Apr 5 13:00:49 2018 UTC

# Line 258 | Line 258 | verify_access(struct Client *client_p)
258    {
259      conf = find_address_conf(client_p->host, client_p->username,
260                               &client_p->ip,
261 <                             client_p->connection->aftype,
261 >                             client_p->ip.ss.ss_family,
262                               client_p->connection->password);
263    }
264    else
# Line 268 | Line 268 | verify_access(struct Client *client_p)
268      strlcpy(non_ident + 1, client_p->username, sizeof(non_ident) - 1);
269      conf = find_address_conf(client_p->host, non_ident,
270                               &client_p->ip,
271 <                             client_p->connection->aftype,
271 >                             client_p->ip.ss.ss_family,
272                               client_p->connection->password);
273    }
274  
# Line 523 | Line 523 | operator_find(const struct Client *who,
523                  return conf;
524              break;
525            case HM_IPV4:
526 <            if (who->connection->aftype == AF_INET)
526 >            if (who->ip.ss.ss_family == AF_INET)
527                if (match_ipv4(&who->ip, &conf->addr, conf->bits))
528                  if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total)
529                    return conf;
530              break;
531            case HM_IPV6:
532 <            if (who->connection->aftype == AF_INET6)
532 >            if (who->ip.ss.ss_family == AF_INET6)
533                if (match_ipv6(&who->ip, &conf->addr, conf->bits))
534                  if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total)
535                    return conf;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines