diff options
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index dd26f7b8e..936320377 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -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 != '=') |