Commit 641396e2 authored by Michael Jerris's avatar Michael Jerris
Browse files

soa.c: fix build on non-ipv6 hosts

Ignore-this: f7b1d9f668883ffffea328af7dff83e8

darcs-hash:20090226151843-11237-bc9d9afe5ce3b644e03329ac35f4db039eaf8f10.gz
parent 4f118169
......@@ -2520,20 +2520,20 @@ soa_init_sdp_connection_with_session(soa_session_t *ss,
if (li == NULL) {
for (li = res; li; li = li->li_next) {
if (li->li_family == AF_INET) {
if (ip4 >= ip6)
break;
else if (!li4)
li4 = li; /* Best IP4 address */
}
#if HAVE_SIN6
if (li->li_family == AF_INET6) {
else if (li->li_family == AF_INET6) {
if (ip6 >= ip4)
break;
else if (!li6)
li6 = li; /* Best IP6 address */
}
#endif
else if (li->li_family == AF_INET) {
if (ip4 >= ip6)
break;
else if (!li4)
li4 = li; /* Best IP4 address */
}
}
if (li == NULL && ip4)
......
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