mirror of
https://github.com/curl/curl.git
synced 2026-07-31 23:38:02 +03:00
parent
82ed83ae30
commit
265717d271
1 changed files with 4 additions and 2 deletions
|
|
@ -1760,8 +1760,10 @@ static CURLcode smtp_parse_address(struct connectdata *conn, const char *fqma,
|
|||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
length = strlen(dup);
|
||||
if(dup[length - 1] == '>')
|
||||
dup[length - 1] = '\0';
|
||||
if(length) {
|
||||
if(dup[length - 1] == '>')
|
||||
dup[length - 1] = '\0';
|
||||
}
|
||||
|
||||
/* Extract the host name from the address (if we can) */
|
||||
host->name = strpbrk(dup, "@");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue