diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-03-23 08:28:19 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-03-23 08:28:19 +0000 |
commit | 657a24f476c90e0ffa8171f78b35a449171f54e1 (patch) | |
tree | 35da20fdef21bef1d7c1c7087846db078e088d31 /source3/nsswitch/winbindd_cm.c | |
parent | 26588248cda26c6c8216a9b49008cb6d0e7f3bce (diff) | |
download | samba-657a24f476c90e0ffa8171f78b35a449171f54e1.tar.gz samba-657a24f476c90e0ffa8171f78b35a449171f54e1.tar.bz2 samba-657a24f476c90e0ffa8171f78b35a449171f54e1.zip |
Various winbind updates:
- pam_winbind updates from vance, fixing a typo and making some the options
work properly.
- Extra parinoia in the winbind connection loop
- Allow pam_winbind to compile on HP-UX (Don Mcall, more work to do).
- Fix up configure.in to use the same method for building the test .so
as the Makefile uses.
Andrew Bartlett
(This used to be commit 8e705dd9215b1cb3f44d6348094679d7dc6a7fbd)
Diffstat (limited to 'source3/nsswitch/winbindd_cm.c')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index 03a8e3cdd1..f4abf86c47 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -415,6 +415,7 @@ static NTSTATUS get_connection_from_cache(const char *domain, const char *pipe_n if (conn->cli) { cli_shutdown(conn->cli); } + ZERO_STRUCT(conn_temp); conn_temp.next = conn->next; DLIST_REMOVE(cm_conns, conn); SAFE_FREE(conn); @@ -426,7 +427,7 @@ static NTSTATUS get_connection_from_cache(const char *domain, const char *pipe_n } if (!conn) { - if (!(conn = (struct winbindd_cm_conn *) malloc(sizeof(struct winbindd_cm_conn)))) + if (!(conn = malloc(sizeof(*conn)))) return NT_STATUS_NO_MEMORY; ZERO_STRUCTP(conn); |