From: Todd C. Miller Date: Wed, 23 Apr 2008 12:30:07 +0000 (+0000) Subject: Fix typo/think in sudo_ldap_read_secret() when storing the secret. X-Git-Tag: SUDO_1_7_0~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25aa1b5bf1e5e0fd66059b04ef0c7dfffef9409e;p=sudo Fix typo/think in sudo_ldap_read_secret() when storing the secret. --- diff --git a/ldap.c b/ldap.c index 71eb50b9d..f637bc8fd 100644 --- a/ldap.c +++ b/ldap.c @@ -876,7 +876,7 @@ sudo_ldap_read_secret(path) *cp = '\0'; /* copy to bindpw and binddn */ efree(ldap_conf.bindpw); - ldap_conf.bindpw = estrdup(cp); + ldap_conf.bindpw = estrdup(buf); efree(ldap_conf.binddn); ldap_conf.binddn = ldap_conf.rootbinddn; ldap_conf.rootbinddn = NULL;