[Commits] [SCM] claws branch, master, updated. 3.14.0-40-g2032c91
ticho at claws-mail.org
ticho at claws-mail.org
Tue Aug 30 10:03:41 CEST 2016
The branch, master has been updated
via 2032c913a77a1c55527152af1244a3b8cfda9a6f (commit)
from 986e6f7c5fcaa4c605de1f8f259056e9d4ffa347 (commit)
Summary of changes:
src/ldapupdate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 2032c913a77a1c55527152af1244a3b8cfda9a6f
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Tue Aug 30 10:03:06 2016 +0200
Fix NULL pointer dereference in LDAP lookup code.
Fixes bug #3027.
diff --git a/src/ldapupdate.c b/src/ldapupdate.c
index b13f242..e8ea64a 100644
--- a/src/ldapupdate.c
+++ b/src/ldapupdate.c
@@ -407,7 +407,7 @@ Rdn *ldapsvr_modify_dn(GHashTable *hash, gchar *dn) {
else {
compare = g_hash_table_lookup(hash, rdn->attribute);
/* if compare and rdn->attribute are equal then dn removed/empty */
- if (strcmp(compare, rdn->attribute) != 0) {
+ if (compare != NULL && strcmp(compare, rdn->attribute) != 0) {
update_rdn(rdn, compare, rest);
return rdn;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list