[PATCH] ITS#9052 zero out sasl_ssf in connection_init
authorHoward Chu <hyc@openldap.org>
Wed, 10 Jul 2019 20:29:39 +0000 (21:29 +0100)
committerRyan Tandy <ryan@nardis.ca>
Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)
Gbp-Pq: Name ITS-9052-zero-out-sasl_ssf-in-connection_init.patch

servers/slapd/connection.c

index a84b03526df45cc85ce5a48e5dfa59c52780f8a4..b411a1f18ebb7278b0ce1a3f86ee5dcd94613cf5 100644 (file)
@@ -554,7 +554,7 @@ Connection * connection_init(
        c->c_close_reason = "?";                        /* should never be needed */
 
        c->c_ssf = c->c_transport_ssf = ssf;
-       c->c_tls_ssf = 0;
+       c->c_tls_ssf = c->c_sasl_ssf = 0;
 
 #ifdef HAVE_TLS
        if ( flags & CONN_IS_TLS ) {