[vlc-commits] [Git][videolan/vlc][master] access: rtp: don't use invalid socket descriptor

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Sep 21 18:18:48 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
cc9d9444 by Francois Cartegnie at 2021-09-21T17:51:22+00:00
access: rtp: don't use invalid socket descriptor

refs #26126

- - - - -


1 changed file:

- modules/access/rtp/rtp.c


Changes:

=====================================
modules/access/rtp/rtp.c
=====================================
@@ -416,6 +416,10 @@ static int OpenURL(vlc_object_t *obj)
     }
 
     free (tmp);
+
+    if(fd == -1)
+        return VLC_EGENERIC;
+
     p_sys->rtp_sock = (co ? vlc_dccp_CreateFD : vlc_datagram_CreateFD)(fd);
     if (p_sys->rtp_sock == NULL) {
         if (rtcp_fd != -1)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cc9d9444fbdf7e8a4d4d5884d6fb97925408d7cf

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cc9d9444fbdf7e8a4d4d5884d6fb97925408d7cf
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list