From b27b7aea6df7c16dffa0f823ad5e368d7d6c1444 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Mon, 23 Aug 2004 14:24:05 +0000 Subject: [PATCH] * gpgkeys_ldap.c (build_attrs): Properly terminate user ID strings that got shrunk due to encoding. --- keyserver/ChangeLog | 5 +++++ keyserver/gpgkeys_ldap.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog index 07ecd1769..3dece69d4 100644 --- a/keyserver/ChangeLog +++ b/keyserver/ChangeLog @@ -1,3 +1,8 @@ +2004-08-23 David Shaw + + * gpgkeys_ldap.c (build_attrs): Properly terminate user ID strings + that got shrunk due to encoding. + 2004-08-22 David Shaw * gpgkeys_ldap.c (find_basekeyspacedn): Use LDAP_SCOPE_BASE along diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c index 41bf58692..91dca0614 100644 --- a/keyserver/gpgkeys_ldap.c +++ b/keyserver/gpgkeys_ldap.c @@ -534,6 +534,8 @@ build_attrs(LDAPMod ***modlist,char *line) else userid[i++]=*tok++; + userid[i]='\0'; + /* We don't care about the other info provided in the uid: line since the LDAP schema doesn't need it. */