diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-07 21:32:04 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-07 21:32:04 -0800 |
commit | 93ee756f0b8951d7f6a2972c6c8dc05e890917a7 (patch) | |
tree | de39ff2e8d9d44b9bf02f4f61a3e81e85a340269 | |
parent | a33c3615316594011c80a37fbcbf18065f44c9fd (diff) | |
download | txr-93ee756f0b8951d7f6a2972c6c8dc05e890917a7.tar.gz txr-93ee756f0b8951d7f6a2972c6c8dc05e890917a7.tar.bz2 txr-93ee756f0b8951d7f6a2972c6c8dc05e890917a7.zip |
sock_accept: uninitialized socklen_t.
* socket.c (sock_accept): The address length passed to
recvfrom was not initialized to the storage length.
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -656,7 +656,7 @@ static val sock_accept(val sock, val mode_str) val family = sock_family(sock); val type = sock_type(sock); struct sockaddr_storage sa; - socklen_t salen; + socklen_t salen = sizeof sa; val peer = nil; if (type == num_fast(SOCK_DGRAM)) { |