Commit f32e1447 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #203 from JoseGoncalves/fixes

Fix uninitialized argument in getsockname().
parents c6fb9ac3 ca019799
...@@ -4917,7 +4917,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl, ...@@ -4917,7 +4917,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl,
conn = NULL; conn = NULL;
#endif // NO_SSL #endif // NO_SSL
} else { } else {
socklen_t len; socklen_t len = sizeof(struct sockaddr);
conn->buf_size = MAX_REQUEST_SIZE; conn->buf_size = MAX_REQUEST_SIZE;
conn->buf = (char *) (conn + 1); conn->buf = (char *) (conn + 1);
conn->ctx = &fake_ctx; conn->ctx = &fake_ctx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment