email: Fixed segfault introduced in commit 195b63f99c
This commit is contained in:
Родитель
3ce2a3991b
Коммит
cf2051764c
|
@ -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 != '=')
|
||||
|
|
Загрузка…
Ссылка в новой задаче