summaryrefslogtreecommitdiff
path: root/source4/wrepl_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-05 16:03:23 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-07 16:52:38 +0100
commit8c16d5e4dc9312475c7d5dcc07022dbf316500cf (patch)
tree751c7c780d9f530b55ccba4d89a3d8b7f59235d5 /source4/wrepl_server
parentf1e28a0b410169d3bfc0a069bf5de50c6cc8a27c (diff)
downloadsamba-8c16d5e4dc9312475c7d5dcc07022dbf316500cf.tar.gz
s4:libcli/wrepl: add wrepl_socket_is_connected()
metze
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r--source4/wrepl_server/wrepl_out_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/wrepl_server/wrepl_out_helpers.c b/source4/wrepl_server/wrepl_out_helpers.c
index 19cabd1e12b..1bd996d8c26 100644
--- a/source4/wrepl_server/wrepl_out_helpers.c
+++ b/source4/wrepl_server/wrepl_out_helpers.c
@@ -166,7 +166,7 @@ static struct composite_context *wreplsrv_out_connect_send(struct wreplsrv_partn
/* we have a connection already, so use it */
if (wreplconn) {
- if (!wreplconn->sock->dead) {
+ if (wrepl_socket_is_connected(wreplconn->sock)) {
state->stage = WREPLSRV_OUT_CONNECT_STAGE_DONE;
state->wreplconn= wreplconn;
composite_done(c);