[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-320-gb3e01e3b3

wwp at claws-mail.org wwp at claws-mail.org
Wed Oct 6 09:40:08 CEST 2021


The branch, gtk3 has been updated
       via  b3e01e3b340b1a2ced8bd50e1b8eaea9eb5dabdf (commit)
      from  ac14ec50d655c16fd6813526fd18d57d0f0e18ef (commit)

Summary of changes:
 src/ldapctrl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit b3e01e3b340b1a2ced8bd50e1b8eaea9eb5dabdf
Author: wwp <subscript at free.fr>
Date:   Wed Oct 6 09:39:11 2021 +0200

    Fix CID 1492329: use after free (proper fix for CID 1491230).

diff --git a/src/ldapctrl.c b/src/ldapctrl.c
index b296a2a42..3bf8acecf 100644
--- a/src/ldapctrl.c
+++ b/src/ldapctrl.c
@@ -575,7 +575,6 @@ gchar *ldapctl_format_criteria( LdapControl *ctl, const gchar *searchVal ) {
 	}
 
 	if( p2 == NULL ) {
-		g_free( p1 );
 		/* Nothing processed - format a default attribute */
 		retVal = g_strdup_printf( "(%s=*)", LDAPCTL_ATTR_EMAIL );
 	}
@@ -583,6 +582,8 @@ gchar *ldapctl_format_criteria( LdapControl *ctl, const gchar *searchVal ) {
 		/* We have something - free up previous result */
 		retVal = p2;
 	}
+	if (p1)
+		g_free( p1 );
 	debug_print("current search string: %s\n", retVal);
 	return retVal;
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list