[Commits] [SCM] claws branch, master, updated. 3.18.0-258-g17bc6d54f
wwp at claws-mail.org
wwp at claws-mail.org
Wed Oct 6 09:40:05 CEST 2021
The branch, master has been updated
via 17bc6d54f0b984de39badbccb4024bbedcdbfce8 (commit)
from 9b84fd8c3d885f9d0b2e8ac90e901d89e0208a0c (commit)
Summary of changes:
src/ldapctrl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 17bc6d54f0b984de39badbccb4024bbedcdbfce8
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