From: Arran Cudbard-Bell Date: Mon, 22 Jun 2015 02:28:20 +0000 (-0400) Subject: Set result to NULL after freeing so we don't get double free X-Git-Tag: release_3_0_9~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81a8ae3bcdbe2a80fc65a769bbc7c0e18e384273;p=thirdparty%2Ffreeradius-server.git Set result to NULL after freeing so we don't get double free --- diff --git a/src/modules/rlm_ldap/sasl.c b/src/modules/rlm_ldap/sasl.c index c20b5af13e2..0cd7e86ba25 100644 --- a/src/modules/rlm_ldap/sasl.c +++ b/src/modules/rlm_ldap/sasl.c @@ -129,6 +129,7 @@ ldap_rcode_t rlm_ldap_sasl_interactive(rlm_ldap_t const *inst, REQUEST *request, _sasl_interact, &sasl_ctx, result, &mech, &msgid); ldap_msgfree(result); /* We always need to free the old message */ + result = NULL; /* * If ldap_sasl_interactive_bind indicates it didn't want