udp: fix the bad getaddrinfo call

This commit is contained in:
Jaroslav Kysela 2014-04-16 18:16:34 +02:00
parent 286dd1c1dd
commit a3558b3fe0

View file

@ -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 : "*",