Skip to content
Snippets Groups Projects
Commit c50e1eda authored by Daniel Salzman's avatar Daniel Salzman
Browse files

net: fix unused flag if not freebind

parent ac83579b
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,9 @@ int net_unbound_socket(int type, const struct sockaddr_storage *ss)
static void allow_freebind(int socket, int family)
{
#if defined(IP_FREEBIND) || defined(IP_BINDANY) || defined(IPV6_BINDANY)
int flag = 1;
#endif
#ifdef IP_FREEBIND
(void) setsockopt(socket, IPPROTO_IP, IP_FREEBIND, &flag, sizeof(flag));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment