added basic ssl support to ircu
[ircu2.10.12-pk.git] / ircd / m_oper.c
index d0e85a12e3f0bc1dc5a7e2d8548ba999ace556b7..c820fe95907c2573194b3026fb903c7bb2e7d92b 100644 (file)
 #include "s_misc.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
@@ -121,7 +121,7 @@ int oper_password_match(const char* to_match, const char* passwd)
      crypt_clear if it's enabled -- hikari */
   crypted = ircd_crypt(to_match, passwd);
 
-  if (to_match == NULL)
+  if (!crypted)
    return 0;
   res = strcmp(crypted, passwd);
   MyFree(crypted);