From a3558b3fe06b4e14fb5ce5bcf2690ba4aee81ee9 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 16 Apr 2014 18:16:34 +0200 Subject: [PATCH] udp: fix the bad getaddrinfo call --- src/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udp.c b/src/udp.c index a52d84e1..0e4a93a7 100644 --- 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 : "*",