diff options
| author | Simo Sorce <ssorce@redhat.com> | 2009-06-02 15:26:13 -0400 |
|---|---|---|
| committer | Simo Sorce <ssorce@redhat.com> | 2009-06-10 14:55:20 -0400 |
| commit | 1a9957cf23b3635f60dd22485988fe47d7154f6c (patch) | |
| tree | 3515e84d82392f6f12123787f08aadb201a5c46b /server/providers | |
| parent | 1bbaf1a7cfde76bd81cab964c2eb9c91c6d8feba (diff) | |
Turn sssd_mem_takeover into sssd_mem_attach
The old function was not used anywhere, and this function uses better
semantics, including not using void ** which gives strict aliasing problems.
Also add a generic password destroy function
Diffstat (limited to 'server/providers')
| -rw-r--r-- | server/providers/proxy.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/server/providers/proxy.c b/server/providers/proxy.c index 4acec90af..3252a7455 100644 --- a/server/providers/proxy.c +++ b/server/providers/proxy.c @@ -318,17 +318,6 @@ static void cache_pw_op(struct sysdb_req *req, void *pvt) } } -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 cache_password(struct be_req *req, const char *username, struct authtok_conv *ac) |
