← Commit list

3da249e1f0

Viktor Szakats
Viktor Szakats
2026-05-15
SUCCESS Duration: 379s

Subject

gsasl: fix potential double free

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/INTERNALS.md+1 -0
@@ -30,6 +30,7 @@ We aim to support these or later versions.
- c-ares 1.16.0 (2020-03-13)
- GnuTLS 3.6.5 (2018-12-01)
- libidn2 2.0.0 (2017-03-29)
+- libgsasl 1.6.0 (2010-12-14)
- LibreSSL 2.9.1 (2019-04-22)
- libssh 0.9.0 (2019-06-28)
- libssh2 1.9.0 (2019-06-20)
lib/vauth/gsasl.c+5 -0
@@ -32,6 +32,10 @@
#include <gsasl.h>
+#if GSASL_VERSION_NUMBER < 0x010600
+#error "requires libgsasl 1.6.0+"
+#endif
+
bool Curl_auth_gsasl_is_supported(struct Curl_easy *data,
const char *mech,
struct gsasldata *gsasl)
@@ -47,6 +51,7 @@ bool Curl_auth_gsasl_is_supported(struct Curl_easy *data,
res = gsasl_client_start(gsasl->ctx, mech, &gsasl->client);
if(res != GSASL_OK) {
gsasl_done(gsasl->ctx);
+ gsasl->ctx = NULL;
return FALSE;
}