wmbiff: fixed possible null-pointer dereference.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
Jeremy Sowden 2019-07-02 20:53:45 +01:00 committed by Carlos R. Mafra
parent de97a44cb4
commit 70ceed6e38

View file

@ -235,9 +235,11 @@ char *passwordFor(const char *username, const char *servername, Pop3 *pc,
return (ret); return (ret);
} }
/* else fall through, overwrite */ /* else fall through, overwrite */
} else if (pc) { } else {
/* if we've asked, but received nothing, disable this box */ if (pc) {
pc->checkMail = NULL; /* if we've asked, but received nothing, disable this box */
pc->checkMail = NULL;
}
return (NULL); return (NULL);
} }
} else { } else {