From fe33a3829ac284915667401d7c83c45bca905558 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 1 Jul 2006 23:59:32 +0000 Subject: r16755: Hunting warning has some benefits.... Solaris found this one that needs to go into 3.0.23, actually munlock the password memory. Volker (This used to be commit 6fa928f96a70b7b063dd1bdbb08c6a3f5d942229) --- source3/nsswitch/winbindd_cred_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index 5fdb79c107..f5003ac8c6 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/nsswitch/winbindd_cred_cache.c @@ -80,8 +80,8 @@ NTSTATUS remove_ccache_by_ccname(const char *ccname) #ifdef DEBUG_PASSWORD DEBUG(10,("unlocking memory: %p\n", entry->pass)); #endif - memset(&(entry->pass), 0, len); - if ((munlock(&entry->pass, len)) == -1) { + memset(entry->pass, 0, len); + if ((munlock(entry->pass, len)) == -1) { DEBUG(0,("failed to munlock memory: %s (%d)\n", strerror(errno), errno)); return map_nt_error_from_unix(errno); -- cgit