Cope with rb_crypt() returning NULL.
This commit is contained in:
parent
df2516e6d8
commit
e69375f3ac
5 changed files with 13 additions and 7 deletions
|
@ -110,7 +110,7 @@ mr_webirc(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
else
|
||||
encr = parv[1];
|
||||
|
||||
if (strcmp(encr, aconf->passwd))
|
||||
if (encr == NULL || strcmp(encr, aconf->passwd))
|
||||
{
|
||||
sendto_one(source_p, "NOTICE * :CGI:IRC password incorrect");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue