From: Jaroslav Kysela Date: Wed, 16 Apr 2014 16:16:34 +0000 (+0200) Subject: udp: fix the bad getaddrinfo call X-Git-Tag: v4.1~2115^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3558b3fe06b4e14fb5ce5bcf2690ba4aee81ee9;p=thirdparty%2Ftvheadend.git udp: fix the bad getaddrinfo call --- diff --git a/src/udp.c b/src/udp.c index a52d84e12..0e4a93a73 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 : "*",