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

Comparing ircd-hybrid/trunk/src/hostmask.c (file contents):
Revision 7671 by michael, Wed Jul 20 17:09:49 2016 UTC vs.
Revision 7672 by michael, Wed Jul 20 18:47:20 2016 UTC

# Line 604 | Line 604 | find_dline_conf(const struct irc_ssaddr
604   struct AddressRec *
605   add_conf_by_address(const unsigned int type, struct MaskItem *conf)
606   {
607 –  struct AddressRec *arec = NULL;
607    const char *const hostname = conf->host;
608    const char *const username = conf->user;
609    static unsigned int prec_value = UINT_MAX;
# Line 612 | Line 611 | add_conf_by_address(const unsigned int t
611  
612    assert(type && !EmptyString(hostname));
613  
614 <  arec = xcalloc(sizeof(struct AddressRec));
614 >  struct AddressRec *arec = xcalloc(sizeof(struct AddressRec));
615    arec->masktype = parse_netmask(hostname, &arec->Mask.ipa.addr, &bits);
616    arec->Mask.ipa.bits = bits;
617    arec->username = username;

Diff Legend

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