Cope with rb_crypt() returning NULL.
This commit is contained in:
parent
df2516e6d8
commit
e69375f3ac
5 changed files with 13 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue