mirror of
https://github.com/curl/curl.git
synced 2026-07-31 21:18:04 +03:00
pop3: add null pointer check
Pointed out by Coverity. A precaution to catch internal errors.
Follow-up to 76d13c721b
Closes #17255
This commit is contained in:
parent
a30830db78
commit
f7c544d867
1 changed files with 3 additions and 0 deletions
|
|
@ -311,6 +311,9 @@ static bool pop3_endofresp(struct Curl_easy *data, struct connectdata *conn,
|
|||
{
|
||||
struct pop3_conn *pop3c = Curl_conn_meta_get(conn, CURL_META_POP3_CONN);
|
||||
(void)data;
|
||||
DEBUGASSERT(pop3c);
|
||||
if(!pop3c) /* internal error */
|
||||
return TRUE;
|
||||
|
||||
/* Do we have an error response? */
|
||||
if(len >= 4 && !memcmp("-ERR", line, 4)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue