webrtc/nice: Make sure to return NULL when validating turn server fails

It affects 'add-turn-server' signal action and 'turn-server' property
of webrtcbin.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3120>
This commit is contained in:
Sangchul Lee 2022-10-05 15:59:03 +09:00 committed by GStreamer Marge Bot
parent 212c09a70e
commit 94c2cd9ddd

View file

@ -1344,12 +1344,19 @@ _validate_turn_server (GstWebRTCNice * ice, const gchar * s)
}
}
out:
g_list_free (keys);
g_free (user);
g_free (pass);
return uri;
out:
g_list_free (keys);
g_free (user);
g_free (pass);
gst_uri_unref (uri);
return NULL;
}
static void