wmbiff: fixed possible null-pointer dereference.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
parent
de97a44cb4
commit
70ceed6e38
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue