From 9f042ae224b3d84643bf4ad977080987fe80d36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 7 Jan 2012 20:12:17 +0000 Subject: [PATCH] rtspconnection: make hostname lookup more thread-safe Don't write IP number string to return into a static array which is shared amongst all threads (note: of course a copy is returned). https://bugzilla.gnome.org/show_bug.cgi?id=666711 --- gst-libs/gst/rtsp/gstrtspconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 5fcfa252d3..c7b0f3284b 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -458,7 +458,7 @@ wrong_family: static gchar * do_resolve (const gchar * host) { - static gchar ip[INET6_ADDRSTRLEN]; + gchar ip[INET6_ADDRSTRLEN]; struct addrinfo *aires, hints; struct addrinfo *ai; gint aierr;