]> granicus.if.org Git - sudo/commitdiff
Fix typo/think in sudo_ldap_read_secret() when storing the secret.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Apr 2008 12:30:07 +0000 (12:30 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Apr 2008 12:30:07 +0000 (12:30 +0000)
ldap.c

diff --git a/ldap.c b/ldap.c
index 71eb50b9dbfeb99ceb6eb0f30cbe513a0844baed..f637bc8fdb5bfbb982ecfd5e69f37b964b020a5b 100644 (file)
--- 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;