Commit 314117cb authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent d296dd4e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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

  *done = FALSE; /* default to not done yet */