[vlc-commits] src/darwin: add missing sanity check
    Felix Paul Kühne 
    git at videolan.org
       
    Fri Sep 14 20:26:22 CEST 2018
    
    
  
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Fri Sep 14 20:26:17 2018 +0200| [10e610ee2f1f11c6fbc6f723bb52a665010fbeb7] | committer: Felix Paul Kühne
src/darwin: add missing sanity check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10e610ee2f1f11c6fbc6f723bb52a665010fbeb7
---
 src/darwin/netconf.m | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/src/darwin/netconf.m b/src/darwin/netconf.m
index eee34cc1b1..a12e2a4131 100644
--- a/src/darwin/netconf.m
+++ b/src/darwin/netconf.m
@@ -70,6 +70,8 @@ char *vlc_getProxyUrl(const char *url)
         } else {
             return NULL;
         }
+        if (proxyHost == NULL)
+            return NULL;
 
         NSString *returnValue = [[NSString alloc] initWithFormat:@"%@://%@:%i", scheme, proxyHost, proxyPort.intValue];
         return strdup([returnValue UTF8String]);
    
    
More information about the vlc-commits
mailing list