diff --git a/lib/pop3.c b/lib/pop3.c index 6db71d1e63..69638a946e 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -1547,7 +1547,7 @@ static CURLcode pop3_parse_custom_request(struct connectdata *conn) CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; struct POP3 *pop3 = data->state.proto.pop3; - const char *custom = conn->data->set.str[STRING_CUSTOMREQUEST]; + const char *custom = data->set.str[STRING_CUSTOMREQUEST]; /* URL decode the custom request */ if(custom)