projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added basic ssl support to ircu
[ircu2.10.12-pk.git]
/
ircd
/
m_oper.c
diff --git
a/ircd/m_oper.c
b/ircd/m_oper.c
index d0e85a12e3f0bc1dc5a7e2d8548ba999ace556b7..c820fe95907c2573194b3026fb903c7bb2e7d92b 100644
(file)
--- a/
ircd/m_oper.c
+++ b/
ircd/m_oper.c
@@
-100,7
+100,7
@@
#include "s_misc.h"
#include "send.h"
#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>
#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);
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);
return 0;
res = strcmp(crypted, passwd);
MyFree(crypted);