git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac00a4
)
r16755: Hunting warning has some benefits....
author
Volker Lendecke
<vlendec@samba.org>
Sat, 1 Jul 2006 23:59:32 +0000
(23:59 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:19:10 +0000
(11:19 -0500)
Solaris found this one that needs to go into 3.0.23, actually munlock the
password memory.
Volker
source/nsswitch/winbindd_cred_cache.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/winbindd_cred_cache.c
b/source/nsswitch/winbindd_cred_cache.c
index 5fdb79c107ae9bfeaa3a9ca620b9245962c935dc..f5003ac8c6342df4fb7dcb25af4be13f38b31b15 100644
(file)
--- a/
source/nsswitch/winbindd_cred_cache.c
+++ b/
source/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);