summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-03 19:29:14 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-03 19:29:14 +0000
commit4d00366f8b43bde535583c40e865f0e9da4a56a1 (patch)
tree92d6a4cca1b45a1073f2d2679c9c6989b0b38ff4 /src
parent3d527705fa2074cf9e3edd77cc8fe7c04c905c0c (diff)
- conf.c:match_conf_password(): fixed undefined behaviour with crypt()
returning NULL since glibc2.17 in certain cases. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3264 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r--src/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 60ac180..e581f55 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -2100,7 +2100,7 @@ match_conf_password(const char *password, const struct MaskItem *conf)
else
encr = password;
- return !strcmp(encr, conf->passwd);
+ return encr && !strcmp(encr, conf->passwd);
}
/*