mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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
This commit is contained in:
parent
1031fedaf0
commit
9f042ae224
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue