mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
smtp_connect: always provide host name buffer
Previously the host name buffer was only used if gethostname() exists, but since we converted that into a curl private function that function always exists and will be used so the buffer needs to exist for all cases/systems.
This commit is contained in:
parent
d296dd4ee8
commit
314117cbf1
@ -1042,10 +1042,7 @@ static CURLcode smtp_connect(struct connectdata *conn,
|
||||
struct pingpong *pp=&smtpc->pp;
|
||||
const char *path = conn->data->state.path;
|
||||
int len;
|
||||
|
||||
#ifdef HAVE_GETHOSTNAME
|
||||
char localhost[1024 + 1];
|
||||
#endif
|
||||
char localhost[1024 + 1];
|
||||
|
||||
*done = FALSE; /* default to not done yet */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user