diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-01-07 20:12:17 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-01-08 14:15:38 +0000 |
commit | 4450bc04d20dadd41f7613d55905af96e2f26477 (patch) | |
tree | 9026f89d649d38e159ba0a8ccb70f6549a699ad9 /gst-libs/gst/rtsp/gstrtspconnection.c | |
parent | 8598e53f16e4d2c8790bc237fec52070be45663d (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
Diffstat (limited to 'gst-libs/gst/rtsp/gstrtspconnection.c')
-rw-r--r-- | gst-libs/gst/rtsp/gstrtspconnection.c | 2 |
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; |