]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
udp: fix the bad getaddrinfo call
authorJaroslav Kysela <perex@perex.cz>
Wed, 16 Apr 2014 16:16:34 +0000 (18:16 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 5 May 2014 20:00:36 +0000 (22:00 +0200)
src/udp.c

index a52d84e12fe3a6e1d029fdc665461946c0b3c612..0e4a93a739b1460e1173ab76d8f41371d5058c1c 100644 (file)
--- a/src/udp.c
+++ b/src/udp.c
@@ -55,7 +55,7 @@ udp_resolve( udp_connection_t *uc, int receiver )
   hints.ai_family = AF_UNSPEC;
   hints.ai_socktype = SOCK_DGRAM;
   
-  x = getaddrinfo(uc->host ? uc->host : "*", port_buf, &hints, &res);
+  x = getaddrinfo(uc->host, port_buf, &hints, &res);
   if (x < 0) {
     tvhlog(LOG_ERR, uc->subsystem, "getaddrinfo: %s: %s",
            uc->host != NULL ? uc->host : "*",