diff --git a/changelog.md b/changelog.md index 986ac47..f923ac2 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ ### Fixed - Fixed duplicate tray icons caused by both Tauri configuration and application code creating a tray icon (fix [#464](https://github.com/yuezk/GlobalProtect-openconnect/issues/464)). +- Fixed a potential crash when VPN progress messages contain printf-style format specifiers. ## 2.6.4 diff --git a/crates/openconnect/src/ffi/vpn.c b/crates/openconnect/src/ffi/vpn.c index 1c98df6..2ec8703 100644 --- a/crates/openconnect/src/ffi/vpn.c +++ b/crates/openconnect/src/ffi/vpn.c @@ -35,7 +35,7 @@ static void print_progress(__attribute__((unused)) void *_vpninfo, int level, if (message == NULL) { ERROR("Failed to format log message"); } else { - LOG(level, message); + vpn_log(level, message); free(message); } }