[vlc-commits] [Git][videolan/vlc][master] chromecast: close the connection when the local address lookup fails

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Nov 24 11:36:16 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
bcfee03e by Felix Paul Kühne at 2026-11-24T12:10:53+01:00
chromecast: close the connection when the local address lookup fails

Run the destructor so the TLS session and its credentials no longer
leak whenever the local address lookup fails.

- - - - -


1 changed file:

- modules/stream_out/chromecast/chromecast_communication.cpp


Changes:

=====================================
modules/stream_out/chromecast/chromecast_communication.cpp
=====================================
@@ -64,7 +64,10 @@ ChromecastCommunication::ChromecastCommunication( vlc_object_t* p_module,
 
     char psz_localIP[NI_MAXNUMERICHOST];
     if (net_GetSockAddress( vlc_tls_GetFD(m_tls), psz_localIP, NULL ))
+    {
+        disconnect();
         throw std::runtime_error( "Cannot get local IP address" );
+    }
 
     m_serverIp = psz_localIP;
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bcfee03e6f6f72d2e1512dd4884c5a7bafc91eed

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bcfee03e6f6f72d2e1512dd4884c5a7bafc91eed
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list