From 0c611e0bc37b1c536cb9fcbe39ad51bec520cf12 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Tue, 24 May 2022 11:50:09 -0800 Subject: urldesc: disabling resolution if host not defined --- src/urldesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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( return(1); }; - if (!(opts & MY_OPT_NORESOLVE)) + if ( (!(opts & MY_OPT_NORESOLVE)) && ((budp->bud_host)) ) { family = ((opts & MY_OPT_IPV4)) ? AF_INET : 0; family = ((opts & MY_OPT_IPV6)) ? AF_INET6 : family; -- cgit v1.2.3