aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/urldesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urldesc.c b/src/urldesc.c
index d23d237..e7022d6 100644
--- a/src/urldesc.c
+++ b/src/urldesc.c
@@ -341,7 +341,7 @@ my_parse_url(
341 return(1); 341 return(1);
342 }; 342 };
343 343
344 if (!(opts & MY_OPT_NORESOLVE)) 344 if ( (!(opts & MY_OPT_NORESOLVE)) && ((budp->bud_host)) )
345 { 345 {
346 family = ((opts & MY_OPT_IPV4)) ? AF_INET : 0; 346 family = ((opts & MY_OPT_IPV4)) ? AF_INET : 0;
347 family = ((opts & MY_OPT_IPV6)) ? AF_INET6 : family; 347 family = ((opts & MY_OPT_IPV6)) ? AF_INET6 : family;