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 3469 by michael, Sat May 3 17:55:53 2014 UTC vs.
Revision 3535 by michael, Thu May 15 15:46:25 2014 UTC

# Line 639 | Line 639 | add_conf_by_address(const unsigned int t
639  
640    assert(type && !EmptyString(hostname));
641  
642 <  arec = MyMalloc(sizeof(struct AddressRec));
642 >  arec = MyCalloc(sizeof(struct AddressRec));
643    arec->masktype = parse_netmask(hostname, &arec->Mask.ipa.addr, &bits);
644    arec->Mask.ipa.bits = bits;
645    arec->username = username;
# Line 681 | Line 681 | delete_one_address_conf(const char *addr
681   {
682    int bits = 0;
683    uint32_t hv = 0;
684 <  dlink_node *ptr = NULL, *ptr_next = NULL;
684 >  dlink_node *ptr = NULL;
685    struct irc_ssaddr addr;
686  
687    switch (parse_netmask(address, &addr, &bits))
# Line 703 | Line 703 | delete_one_address_conf(const char *addr
703        break;
704    }
705  
706 <  DLINK_FOREACH_SAFE(ptr, ptr_next, atable[hv].head)
706 >  DLINK_FOREACH(ptr, atable[hv].head)
707    {
708      struct AddressRec *arec = ptr->data;
709  

Diff Legend

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