mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Remove smtp_server when passing NULL to smtp_set_server_addr() (see patch #9373 for discussion)
This commit is contained in:
parent
117d3abdf8
commit
bab7a32eec
@ -351,7 +351,11 @@ smtp_set_server_addr(const char* server)
|
||||
if (len > SMTP_MAX_SERVERNAME_LEN) {
|
||||
return ERR_MEM;
|
||||
}
|
||||
MEMCPY(smtp_server, server, len);
|
||||
if (len != 0) {
|
||||
MEMCPY(smtp_server, server, len);
|
||||
} else {
|
||||
smtp_server[0] = 0;
|
||||
}
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user