summaryrefslogtreecommitdiff
path: root/pith/ldap.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-04-18 15:12:05 -0600
committerEduardo Chappa <chappa@washington.edu>2016-04-18 15:12:05 -0600
commit0e2f2446b8b91184bcaa92760d77a06c2c97fcc2 (patch)
tree2fc580eff5b4cb04050ccce491063f31c8bb7162 /pith/ldap.c
parent9f8500c277374795f2a1ba40c86bece5fee0ead6 (diff)
downloadalpine-0e2f2446b8b91184bcaa92760d77a06c2c97fcc2.tar.xz
* Fix an error where the string "ldap " instead of "ldap" was being
used to form a URL. Reported and fixed by Wang Kang.
Diffstat (limited to 'pith/ldap.c')
-rw-r--r--pith/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/ldap.c b/pith/ldap.c
index 8bec9c06..09df8efd 100644
--- a/pith/ldap.c
+++ b/pith/ldap.c
@@ -527,7 +527,7 @@ ldap_lookup(LDAP_SERV_S *info, char *string, CUSTOM_FILT_S *cust,
#endif /* SMIME_SSLCERTS */
snprintf(tmp_20k_buf, SIZEOF_20KBUF, "%s://%s:%d",
- info->ldaps ? "ldaps" : "ldap ", serv, info->port);
+ info->ldaps ? "ldaps" : "ldap", serv, info->port);
tmp_20k_buf[SIZEOF_20KBUF-1] = '\0';
if(ldap_initialize(&ld, tmp_20k_buf) != LDAP_SUCCESS)