Zebediah Figura (@zfigura) commented about server/sock.c:
- if (sock->family != WS_AF_INET6 || *v6only) return 0;
- if (!ipv4addr_from_v6( &v4addr, &addr->in6 )) return 0;
- if ((entry = rb_get( &bound_addresses_tree, &v4addr )))
- {
bound_addr = WINE_RB_ENTRY_VALUE(entry, struct bound_addr, entry);
if (bound_addr->reuse_count == -1 || !sock->reuseaddr) return 1;
- }
- return 0;
+}
+static struct bound_addr *register_bound_address( struct sock *sock, const union unix_sockaddr *addr ) +{
- struct bound_addr *bound_addr;
- if (!(bound_addr = malloc( sizeof(*bound_addr) )))
fatal_error( "out of memory\n" );
mem_alloc(). This also doesn't seem like the place for a fatal_error?