email: Fixed segfault introduced in commit 195b63f99c

This commit is contained in:
Steve Holme 2013-12-22 00:16:52 +00:00
parent 3ce2a3991b
commit cf2051764c
3 changed files with 3 additions and 3 deletions

View File

@ -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 != '=')

View File

@ -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 != '=')

View File

@ -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 != '=')