[vlc-commits] access/satip: check return-value of vlc_uri_compose

Filip Roséen git at videolan.org
Fri Mar 3 15:59:09 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu Mar  2 19:37:37 2017 +0100| [9177534286bbee4306da6455b7b1762880ef9e83] | committer: Jean-Baptiste Kempf

access/satip: check return-value of vlc_uri_compose

vlc_uri_compose might fail and return NULL, meaning that we should
abort further processing if this happens (as it does not make sense to
continue).

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9177534286bbee4306da6455b7b1762880ef9e83
---

 modules/access/satip.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/satip.c b/modules/access/satip.c
index 3840e72..1f31425 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -697,6 +697,9 @@ static int satip_open(vlc_object_t *obj)
     }
 
     char *psz_setup_url = vlc_uri_compose(&setup_url);
+    if( psz_setup_url == NULL )
+        goto error;
+
     if (multicast) {
         net_Printf(access, sys->tcp_sock,
                 "SETUP %s RTSP/1.0\r\n"



More information about the vlc-commits mailing list