diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-11 14:38:52 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-11 18:18:29 +0200 |
commit | 7a795ffeb42253b46a05771188d1b5f2961b990f (patch) | |
tree | da978035aa1265fce98d663c0f97d945832962af /source3 | |
parent | 0791a4d5beb7565c0ac476f8117b36b57fa5f938 (diff) | |
download | samba-7a795ffeb42253b46a05771188d1b5f2961b990f.tar.gz samba-7a795ffeb42253b46a05771188d1b5f2961b990f.tar.bz2 samba-7a795ffeb42253b46a05771188d1b5f2961b990f.zip |
s3:winbindd_cm: make use of cli_state_disconnect()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index c94d6709c4..a14fe13f74 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -1717,8 +1717,7 @@ void close_conns_after_fork(void) * requests in invalidate_cm_connection() */ if (cli_state_is_connected(domain->conn.cli)) { - close(domain->conn.cli->fd); - domain->conn.cli->fd = -1; + cli_state_disconnect(domain->conn.cli); } invalidate_cm_connection(&domain->conn); @@ -2745,8 +2744,7 @@ void winbind_msg_ip_dropped(struct messaging_context *msg_ctx, client_socket_addr(domain->conn.cli->fd, sockaddr, sizeof(sockaddr)); if (strequal(sockaddr, addr)) { - close(domain->conn.cli->fd); - domain->conn.cli->fd = -1; + cli_state_disconnect(domain->conn.cli); } } TALLOC_FREE(freeit); |