GNOME Bugzilla – Bug 573342
Unconditioned EAFNOSUPPORT in gstudpnetutils.c
Last modified: 2009-02-27 19:42:06 UTC
diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c index b1f864e..513bbba 100644 --- a/gst/udp/gstudpnetutils.c +++ b/gst/udp/gstudpnetutils.c @@ -154,7 +154,12 @@ gst_udp_set_loop_ttl (int sockfd, gboolean loop, int ttl) break; } default: +#ifdef G_OS_WIN32 + WSASetLastError (WSAEAFNOSUPPORT); +#else errno = EAFNOSUPPORT; +#endif + } return ret; }
commit 5d9c947f923dc2f06020c2aaa0898855692dc2a1 Author: LRN <lrn1986@gmail.com> Date: Fri Feb 27 20:24:53 2009 +0100 udp: Don't set errno to EAFNOSUPPORT unconditionally Fixes bug #573342.
Btw, this code is not actually used and #if 0'd ;)