[vlc-commits] satip: Add missing allocation check
Hugo Beauzée-Luyssen
git at videolan.org
Wed Nov 22 17:37:36 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 22 16:20:24 2017 +0100| [e95b11e2c0c730599d66241047de0760e0bea40f] | committer: Hugo Beauzée-Luyssen
satip: Add missing allocation check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e95b11e2c0c730599d66241047de0760e0bea40f
---
modules/access/satip.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/access/satip.c b/modules/access/satip.c
index 2da403dbf8..eed3cf5b4a 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -632,6 +632,8 @@ static int satip_open(vlc_object_t *obj)
msg_Dbg(access, "try to open '%s'", access->psz_url);
char *psz_host = var_InheritString(access, "satip-host");
+ if (psz_host == NULL)
+ return VLC_ENOMEM;
sys->udp_sock = -1;
sys->rtcp_sock = -1;
More information about the vlc-commits
mailing list