email: Fixed segfault introduced in commit 195b63f99c
This commit is contained in:
@@ -2314,7 +2314,7 @@ static CURLcode imap_parse_url_options(struct connectdata *conn)
|
||||
const char *ptr = options;
|
||||
bool reset = TRUE;
|
||||
|
||||
while(*ptr) {
|
||||
while(ptr && *ptr) {
|
||||
const char *key = ptr;
|
||||
|
||||
while(*ptr && *ptr != '=')
|
||||
|
||||
@@ -1834,7 +1834,7 @@ static CURLcode pop3_parse_url_options(struct connectdata *conn)
|
||||
const char *ptr = options;
|
||||
bool reset = TRUE;
|
||||
|
||||
while(*ptr) {
|
||||
while(ptr && *ptr) {
|
||||
const char *key = ptr;
|
||||
|
||||
while(*ptr && *ptr != '=')
|
||||
|
||||
@@ -1929,7 +1929,7 @@ static CURLcode smtp_parse_url_options(struct connectdata *conn)
|
||||
const char *ptr = options;
|
||||
bool reset = TRUE;
|
||||
|
||||
while(*ptr) {
|
||||
while(ptr && *ptr) {
|
||||
const char *key = ptr;
|
||||
|
||||
while(*ptr && *ptr != '=')
|
||||
|
||||
Reference in New Issue
Block a user