[Commits] [SCM] claws branch, master, updated. 4.3.0-46-gabda86e0c
mones at claws-mail.org
mones at claws-mail.org
Fri Nov 15 22:46:48 UTC 2024
The branch, master has been updated
via abda86e0c6ce660baa568eef722bb14fd7bbfd09 (commit)
from 4ab583e275576073a8831d55a8b7c6b4db1e5e3e (commit)
Summary of changes:
src/ldapquery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit abda86e0c6ce660baa568eef722bb14fd7bbfd09
Author: Ricardo Mones <ricardo at mones.org>
Date: Fri Nov 15 23:46:26 2024 +0100
Fix CID 1491093: attrib leaked if attvalue is null
diff --git a/src/ldapquery.c b/src/ldapquery.c
index 17f3e3e68..429988d11 100644
--- a/src/ldapquery.c
+++ b/src/ldapquery.c
@@ -618,9 +618,9 @@ static GList *ldapqry_process_single_entry(
listDisplay = ldapqry_add_single_value( ld, e, attribute );
} else {
GSList *attlist = ldapqry_add_single_value( ld, e, attribute );
- UserAttribute *attrib = addritem_create_attribute();
const gchar *attvalue = attlist?((gchar *)attlist->data):NULL;
if (attvalue) {
+ UserAttribute *attrib = addritem_create_attribute();
addritem_attrib_set_name( attrib, attribute );
addritem_attrib_set_value( attrib, attvalue );
other_attrs = g_slist_prepend(other_attrs, attrib);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list