Changeset 747 for branches


Ignore:
Timestamp:
06/01/06 04:51:02 (6 years ago)
Author:
wd
Message:

Fix two bugs which could leave corrupt/bad conf data lying around after a
/rehash in server structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/conf.c

    r741 r747  
    506506            /* update their flags, too. */ 
    507507            server_set_flags(srv); 
    508         } 
    509     } 
    510  
    511     /* now check for autoconnects */ 
     508        } else 
     509            srv->conf = NULL; /* important to re-set this if we need to */ 
     510    } 
     511 
     512    /* Wipe out any existing auto-connect info.. */ 
     513    while (!LIST_EMPTY(ircd.lists.server_connects)) 
     514        destroy_server_connect(LIST_FIRST(ircd.lists.server_connects)); 
     515 
     516    /* And add new ones */ 
    512517    cep = NULL; 
    513518    while ((cep = conf_find_next("server", NULL, CONF_TYPE_LIST, cep, conf, 1)) 
Note: See TracChangeset for help on using the changeset viewer.