Commit c99649c6 authored by Daniel Salzman's avatar Daniel Salzman

server: fix UDP socket initialization

parent 2daebeb0
...@@ -190,8 +190,8 @@ static int server_init_iface(iface_t *new_if, struct sockaddr_storage *addr, int ...@@ -190,8 +190,8 @@ static int server_init_iface(iface_t *new_if, struct sockaddr_storage *addr, int
/* Initialize the sockets to ensure safe early deinitialization. */ /* Initialize the sockets to ensure safe early deinitialization. */
for (int i = 0; i < udp_socket_count; i++) { for (int i = 0; i < udp_socket_count; i++) {
new_if->fd_udp[new_if->fd_udp_count] = -1; new_if->fd_udp[i] = -1;
}; }
new_if->fd_tcp = -1; new_if->fd_tcp = -1;
bool warn_bind = false; bool warn_bind = false;
......
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