Pārlūkot izejas kodu

HTTP Upload Controller: don't fail to return the IP if there is no need to fail

Felix Paul Kühne 11 gadi atpakaļ
vecāks
revīzija
c591e59c80
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Sources/VLCHTTPUploaderController.m

+ 1 - 1
Sources/VLCHTTPUploaderController.m

@@ -108,7 +108,7 @@
     struct ifaddrs *temp_addr = NULL;
     int success = getifaddrs(&interfaces);
 
-    if (!success) {
+    if (success != 0) {
         freeifaddrs(interfaces);
         return address;
     }