From 5f642f38bd5b4aecd76844a32abc787d8b558834 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 22 Jan 2009 15:59:40 +0100 Subject: [PATCH] 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(-) diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c index 93915a5..a1588ca 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: -- 2.7.4