From: David Svensson Fors Date: Mon, 23 Jan 2023 11:01:00 +0000 (+0100) Subject: udpsrc: GstSocketTimestampMessage only for SCM_TIMESTAMPNS X-Git-Tag: 1.22.7~549 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=304352ac178c6101db70288078d7f9fe981f908f;p=platform%2Fupstream%2Fgstreamer.git udpsrc: GstSocketTimestampMessage only for SCM_TIMESTAMPNS Deserialize socket control messages as GstSocketTimestampMessage only if (level, type) is (SOL_SOCKET, SCM_TIMESTAMPNS). Without this patch, messages with types SCM_RIGHTS or SCM_CREDENTIALS could be deserialized as GstSocketTimestampMessage instead of GUnixFDMessage or GUnixCredentialsMessage from gio. Fixes #1736 Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c b/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c index f957007468..172137ad8c 100644 --- a/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c +++ b/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c @@ -476,7 +476,8 @@ gst_socket_timestamp_message_deserialize (gint level, { GstSocketTimestampMessage *message; - if (level != SOL_SOCKET) + if (level != SOL_SOCKET + || type != gst_socket_timestamp_message_get_msg_type (NULL)) return NULL; if (size < sizeof (struct timespec))