diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-01 23:59:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:10 -0500 |
commit | fe33a3829ac284915667401d7c83c45bca905558 (patch) | |
tree | a51dfd61651ebcaeca4f970018a8b6f4535f9b7d /source3/nsswitch | |
parent | 46fab723d8a6d55b5777f25a948c8a5afff5348f (diff) | |
download | samba-fe33a3829ac284915667401d7c83c45bca905558.tar.gz samba-fe33a3829ac284915667401d7c83c45bca905558.tar.bz2 samba-fe33a3829ac284915667401d7c83c45bca905558.zip |
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)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_cred_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |