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-7.2/src/s_conf.c (file contents):
Revision 432 by michael, Sat Feb 11 14:55:00 2006 UTC vs.
Revision 433 by michael, Sat Feb 11 15:22:07 2006 UTC

# Line 363 | Line 363 | make_conf_item(ConfType type)
363   void
364   delete_conf_item(struct ConfItem *conf)
365   {
366 +  dlink_node *m = NULL;
367    struct MatchItem *match_item;
368    struct AccessItem *aconf;
369    ConfType type = conf->type;
# Line 509 | Line 510 | delete_conf_item(struct ConfItem *conf)
510      MyFree(match_item->reason);
511      MyFree(match_item->oper_reason);
512      dlinkDelete(&conf->node, &nresv_items);
513 +
514 +    if (conf->flags & CONF_FLAGS_TEMPORARY)
515 +      if ((m = dlinkFindDelete(&temporary_resv, conf)) != NULL)
516 +        free_dlink_node(m);
517 +
518      MyFree(conf);
519      break;
520  
# Line 526 | Line 532 | delete_conf_item(struct ConfItem *conf)
532      break;
533  
534    case CRESV_TYPE:
535 +    if (conf->flags & CONF_FLAGS_TEMPORARY)
536 +      if ((m = dlinkFindDelete(&temporary_resv, conf)) != NULL)
537 +        free_dlink_node(m);
538 +
539      MyFree(conf);
540      break;
541  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines