git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c913fc0
)
fix bug 382: make sure to free and reset the cli_state pointer after flushing connect...
author
Gerald Carter
<jerry@samba.org>
Sat, 6 Sep 2003 19:49:59 +0000
(19:49 +0000)
committer
Gerald Carter
<jerry@samba.org>
Sat, 6 Sep 2003 19:49:59 +0000
(19:49 +0000)
(This used to be commit
60c8796edd84249db5419329a0fea4bbc7f9bb98
)
source3/nsswitch/winbindd_pam.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/winbindd_pam.c
b/source3/nsswitch/winbindd_pam.c
index a89c7ca065e154dca93d9597df5c9dc77dcbec28..79b8c1d92d150528f68d55cf1f8f365e125e63f4 100644
(file)
--- a/
source3/nsswitch/winbindd_pam.c
+++ b/
source3/nsswitch/winbindd_pam.c
@@
-127,6
+127,9
@@
enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
do {
ZERO_STRUCT(info3);
ZERO_STRUCT(ret_creds);
+
+ if ( cli )
+ SAFE_FREE(cli);
/* Don't shut this down - it belongs to the connection cache code */
result = cm_get_netlogon_cli(contact_domain, trust_passwd,
@@
-301,6
+304,9
@@
enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state)
ZERO_STRUCT(info3);
ZERO_STRUCT(ret_creds);
+ if ( cli )
+ SAFE_FREE( cli );
+
/* Don't shut this down - it belongs to the connection cache code */
result = cm_get_netlogon_cli(contact_domain, trust_passwd, sec_channel_type, False, &cli);