aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-05-24 11:50:09 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-05-24 11:50:09 -0800
commit0c611e0bc37b1c536cb9fcbe39ad51bec520cf12 (patch)
tree2d5fd171bdf80a8f84f1bf25dcd5e3b8796c9715 /src
parent2965b76be97d234fb3932502265a3c440fe09ea9 (diff)
downloaddmstools-0c611e0bc37b1c536cb9fcbe39ad51bec520cf12.tar.gz
dmstools-0c611e0bc37b1c536cb9fcbe39ad51bec520cf12.tar.bz2
dmstools-0c611e0bc37b1c536cb9fcbe39ad51bec520cf12.tar.xz
dmstools-0c611e0bc37b1c536cb9fcbe39ad51bec520cf12.zip
urldesc: disabling resolution if host not defined
Diffstat (limited to 'src')
-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;