[vlc-commits] satip: Fix potential use of uninitializer pointer
Hugo Beauzée-Luyssen
git at videolan.org
Wed Nov 22 17:37:34 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 22 16:19:37 2017 +0100| [ef6a67527b816b81d3a0d18f31a83daaae3e1553] | committer: Hugo Beauzée-Luyssen
satip: Fix potential use of uninitializer pointer
CID #1372952
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef6a67527b816b81d3a0d18f31a83daaae3e1553
---
modules/access/satip.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/access/satip.c b/modules/access/satip.c
index 30563f3407..2da403dbf8 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -643,7 +643,10 @@ static int satip_open(vlc_object_t *obj)
* */
char *psz_lower_url = strdup(access->psz_url);
if (psz_lower_url == NULL)
- goto error;
+ {
+ free( psz_host );
+ return VLC_ENOMEM;
+ }
for (unsigned i = 0; i < strlen(psz_lower_url); i++)
psz_lower_url[i] = tolower(psz_lower_url[i]);
More information about the vlc-commits
mailing list