summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-07 20:12:17 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-07 20:16:41 +0000
commit9f042ae224b3d84643bf4ad977080987fe80d36f (patch)
tree5da2eca33951a182b6e90e346ebbf00343d55c3e
parent1031fedaf01097b32ea8945c5476a850e3e8d028 (diff)
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
-rw-r--r--gst-libs/gst/rtsp/gstrtspconnection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index 5fcfa252d..c7b0f3284 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;