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
Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git]
/
ircd
/
m_oper.c
diff --git
a/ircd/m_oper.c
b/ircd/m_oper.c
index d51c00ff8bcc30a99bb246b029e640edd2e56ceb..60156db6bf66ad245c5edd2ca38dfbfdcae3fd9b 100644
(file)
--- a/
ircd/m_oper.c
+++ b/
ircd/m_oper.c
@@
-118,12
+118,7
@@
int oper_password_match(const char* to_match, const char* passwd)
* passwd may be NULL. Head it off at the pass...
*/
if (to_match && passwd) {
* passwd may be NULL. Head it off at the pass...
*/
if (to_match && passwd) {
- char salt[3];
- const char* encr;
- salt[0] = passwd[0];
- salt[1] = passwd[1];
- salt[2] = '\0';
- encr = ircd_crypt(to_match, salt);
+ encr = ircd_crypt(to_match, passwd);
return (0 == strcmp(encr, passwd));
}
return 0;
return (0 == strcmp(encr, passwd));
}
return 0;