mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
Fix uninitialized argument in getsockname().
This commit is contained in:
1 parent
c6fb9ac3d0
commit
ca019799b9
1 file changed
+1
-1
+1
-1
@@ -4917,7 +4917,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl,
|
||||
conn = NULL;
|
||||
#endif // NO_SSL
|
||||
} else {
|
||||
socklen_t len;
|
||||
socklen_t len = sizeof(struct sockaddr);
|
||||
conn->buf_size = MAX_REQUEST_SIZE;
|
||||
conn->buf = (char *) (conn + 1);
|
||||
conn->ctx = &fake_ctx;
|
||||
|
||||
Reference in new issue
Block a user