diff options
author | default <nobody@localhost> | 2022-10-05 12:08:17 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-05 12:08:17 +0200 |
commit | 3e2cfa48d9e8881cbb3c1934eb33d5c419a76211 (patch) | |
tree | 44250c4866a38276887d11b7722f215a49fbb40b /xs_socket.h | |
parent | cea390bdabd65408baf6e46964ca7aaad5727f49 (diff) |
Alert if _timeline_find_fn() finds more than one file.
Diffstat (limited to 'xs_socket.h')
-rw-r--r-- | xs_socket.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xs_socket.h b/xs_socket.h index c5eab80..e4a18ec 100644 --- a/xs_socket.h +++ b/xs_socket.h @@ -82,10 +82,10 @@ FILE *xs_socket_accept(int rs) /* accepts an incoming connection */ { int cs = -1; - struct sockaddr_in host; - socklen_t l = sizeof(host); + struct sockaddr_storage addr; + socklen_t l = sizeof(addr); - cs = accept(rs, (struct sockaddr *)&host, &l); + cs = accept(rs, (struct sockaddr *)&addr, &l); return cs == -1 ? NULL : fdopen(cs, "r+"); } |