[vlc-commits] [Git][videolan/vlc][3.0.x] chromecast: close the connection when the local address lookup fails
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Nov 26 11:23:09 UTC 2026
Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC
Commits:
13442b4c by Felix Paul Kühne at 2026-11-25T12:11:54+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.
(cherry picked from commit bcfee03e6f6f72d2e1512dd4884c5a7bafc91eed)
- - - - -
1 changed file:
- modules/stream_out/chromecast/chromecast_communication.cpp
Changes:
=====================================
modules/stream_out/chromecast/chromecast_communication.cpp
=====================================
@@ -65,7 +65,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/13442b4ca85b5ef64f736e14546c30c4237d6737
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/13442b4ca85b5ef64f736e14546c30c4237d6737
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