diff options
| author | Fabio Alessandrelli | 2018-06-06 18:34:08 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2018-06-06 18:34:08 +0200 |
| commit | 6cda58a12fde6a0232e84b1f7463f1aba836fd6b (patch) | |
| tree | 619c1fef2b335aab4e5850b48931228e7f50794d /modules/websocket | |
| parent | 07d4cd7f6d833332b1bc3d2025d222778624ce17 (diff) | |
| download | godot-6cda58a12fde6a0232e84b1f7463f1aba836fd6b.tar.gz godot-6cda58a12fde6a0232e84b1f7463f1aba836fd6b.tar.zst godot-6cda58a12fde6a0232e84b1f7463f1aba836fd6b.zip | |
Diffstat (limited to 'modules/websocket')
| -rw-r--r-- | modules/websocket/lws_peer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/websocket/lws_peer.cpp b/modules/websocket/lws_peer.cpp index 3855a39ae..96acb99cc 100644 --- a/modules/websocket/lws_peer.cpp +++ b/modules/websocket/lws_peer.cpp @@ -191,8 +191,8 @@ IP_Address LWSPeer::get_connected_host() const { IP_Address ip; int port = 0; - socklen_t len = 0; struct sockaddr_storage addr; + socklen_t len = sizeof(addr); int fd = lws_get_socket_fd(wsi); ERR_FAIL_COND_V(fd == -1, IP_Address()); @@ -212,8 +212,8 @@ uint16_t LWSPeer::get_connected_port() const { IP_Address ip; int port = 0; - socklen_t len = 0; struct sockaddr_storage addr; + socklen_t len = sizeof(addr); int fd = lws_get_socket_fd(wsi); ERR_FAIL_COND_V(fd == -1, 0); |
