]> jfr.im git - solanum.git/blobdiff - src/hash.c
s_conf: Don't leak strings when loading default conf
[solanum.git] / src / hash.c
index 7d57e2ff374d3e5e791f01b35631fca3680148c4..6ee494f2600111af31aaf5c047f6193e57952596 100644 (file)
 #include "client.h"
 #include "common.h"
 #include "hash.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "send.h"
 #include "msg.h"
 #include "cache.h"
 #include "s_newconf.h"
+#include "s_assert.h"
 
 #define hash_cli_fd(x) (x % CLI_FD_MAX)
 
@@ -632,7 +633,7 @@ hash_find_resv(const char *name)
        {
                aconf = ptr->data;
 
-               if(!irccmp(name, aconf->name))
+               if(!irccmp(name, aconf->host))
                {
                        aconf->port++;
                        return aconf;