]> jfr.im git - solanum.git/blobdiff - src/s_user.c
Remove s_assert definition from ircd_defs.h and add it to its own header.
[solanum.git] / src / s_user.c
index e6fc1151e9e1951a75317f84e2b684ecbd21b0cd..48b30d512592eaef98a04e7fd92cc1f2e1c50ebc 100644 (file)
@@ -54,6 +54,7 @@
 #include "blacklist.h"
 #include "substitution.h"
 #include "chmode.h"
+#include "s_assert.h"
 
 static void report_and_set_user_flags(struct Client *, struct ConfItem *);
 void user_welcome(struct Client *source_p);
@@ -373,7 +374,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
                else
                        encr = source_p->localClient->passwd;
 
-               if(strcmp(encr, aconf->passwd))
+               if(encr == NULL || strcmp(encr, aconf->passwd))
                {
                        ServerStats.is_ref++;
                        sendto_one(source_p, form_str(ERR_PASSWDMISMATCH), me.name, source_p->name);