Cope with rb_crypt() returning NULL.

This commit is contained in:
Jilles Tjoelker 2013-02-02 00:54:32 +01:00
parent df2516e6d8
commit e69375f3ac
5 changed files with 13 additions and 7 deletions

View file

@ -196,7 +196,7 @@ match_oper_password(const char *password, struct oper_conf *oper_p)
else
encr = password;
if(strcmp(encr, oper_p->passwd) == 0)
if(encr != NULL && strcmp(encr, oper_p->passwd) == 0)
return YES;
else
return NO;