From 6c66ae51d0fff5587bc05bbdc98ae5ba06363f04 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 11 Jun 2009 08:48:36 -0400 Subject: Remove extra implementation of password_destructor --- server/providers/ldap/ldap_auth.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'server/providers') diff --git a/server/providers/ldap/ldap_auth.c b/server/providers/ldap/ldap_auth.c index 476dbc73..cd3902f0 100644 --- a/server/providers/ldap/ldap_auth.c +++ b/server/providers/ldap/ldap_auth.c @@ -660,17 +660,6 @@ struct sdap_pw_cache { struct sdap_req *lr; }; -static int password_destructor(void *memctx) -{ - char *password = (char *)memctx; - int i; - - /* zero out password */ - for (i = 0; password[i]; i++) password[i] = '\0'; - - return 0; -} - static void sdap_reply(struct be_req *req, int ret, char *errstr) { req->fn(req, ret, errstr); -- cgit