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

@ -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;