From 5f642f38bd5b4aecd76844a32abc787d8b558834 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 22 Jan 2009 15:59:40 +0100 Subject: Correct return value from gst_udp_get_addr() when no known family is found. --- gst/udp/gstudpnetutils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gst/udp') diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c index 93915a5e..a1588caa 100644 --- a/gst/udp/gstudpnetutils.c +++ b/gst/udp/gstudpnetutils.c @@ -104,8 +104,7 @@ gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr) if (nres) { memcpy (addr, nres->ai_addr, nres->ai_addrlen); } else { - errno = EAI_ADDRFAMILY; - ret = -1; + ret = EAI_ADDRFAMILY; } beach: -- cgit