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 2525 by michael, Sat Nov 2 17:07:38 2013 UTC vs.
Revision 2830 by michael, Thu Jan 16 15:23:07 2014 UTC

# Line 196 | Line 196 | conf_free(struct MaskItem *conf)
196    DLINK_FOREACH_SAFE(ptr, ptr_next, conf->hub_list.head)
197    {
198      MyFree(ptr->data);
199 +    dlinkDelete(ptr, &conf->hub_list);
200      free_dlink_node(ptr);
201    }
202  
203    DLINK_FOREACH_SAFE(ptr, ptr_next, conf->leaf_list.head)
204    {
205      MyFree(ptr->data);
206 +    dlinkDelete(ptr, &conf->leaf_list);
207      free_dlink_node(ptr);
208    }
209  
# Line 209 | Line 211 | conf_free(struct MaskItem *conf)
211    {
212      struct exempt *exptr = ptr->data;
213  
214 +    dlinkDelete(ptr, &conf->exempt_list);
215      MyFree(exptr->name);
216      MyFree(exptr->user);
217      MyFree(exptr->host);
# Line 1029 | Line 1032 | rehash(int sig)
1032   {
1033    if (sig != 0)
1034      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
1035 <                         "Got signal SIGHUP, reloading ircd.conf file");
1035 >                         "Got signal SIGHUP, reloading configuration file(s)");
1036  
1037    restart_resolver();
1038  
# Line 1368 | Line 1371 | static const struct oper_privs
1371   char *
1372   oper_privs_as_string(const unsigned int port)
1373   {
1374 <  static char privs_out[16];
1374 >  static char privs_out[IRCD_BUFSIZE];
1375    char *privs_ptr = privs_out;
1376    const struct oper_privs *opriv = flag_list;
1377  
# Line 1433 | Line 1436 | void
1436   read_conf_files(int cold)
1437   {
1438    const char *filename;
1439 <  char chanmodes[32];
1440 <  char chanlimit[32];
1439 >  char chanmodes[IRCD_BUFSIZE];
1440 >  char chanlimit[IRCD_BUFSIZE];
1441  
1442    conf_parser_ctx.boot = cold;
1443    filename = ConfigFileEntry.configfile;
# Line 1798 | Line 1801 | valid_wild_card(struct Client *source_p,
1801           * break - no point in searching further.
1802           */
1803          if (++nonwild >= ConfigFileEntry.min_nonwildcard)
1804 +        {
1805 +          va_end(args);
1806            return 1;
1807 +        }
1808        }
1809      }
1810    }
# Line 1806 | Line 1812 | valid_wild_card(struct Client *source_p,
1812    if (warn)
1813      sendto_one(source_p, ":%s NOTICE %s :Please include at least %d non-wildcard characters with the mask",
1814                 me.name, source_p->name, ConfigFileEntry.min_nonwildcard);
1815 +  va_end(args);
1816    return 0;
1817   }
1818  

Diff Legend

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