diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-05-05 19:05:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:01 -0500 |
commit | 9644ced73139843aaa97f26114f5388e4b34b112 (patch) | |
tree | 5785d7e27eba5033899301803ac225f39f6bcb4e /source4/librpc/rpc | |
parent | e0e8fc3db45691160b629b0a43753c162be03490 (diff) | |
download | samba-9644ced73139843aaa97f26114f5388e4b34b112.tar.gz samba-9644ced73139843aaa97f26114f5388e4b34b112.tar.bz2 samba-9644ced73139843aaa97f26114f5388e4b34b112.zip |
r22683: fix the logic for skipping the pipe_dead()
code on the 2nd run.
thanks volker for finding this!
metze
(This used to be commit 00ccc217da62a7f4125f28e77030ae526d573f3a)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_smb.c | 4 | ||||
-rw-r--r-- | source4/librpc/rpc/dcerpc_smb2.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c index 3f35eae8f1..1eead06a48 100644 --- a/source4/librpc/rpc/dcerpc_smb.c +++ b/source4/librpc/rpc/dcerpc_smb.c @@ -42,12 +42,12 @@ static void pipe_dead(struct dcerpc_connection *c, NTSTATUS status) { struct smb_private *smb = c->transport.private; - smb->dead = true; - if (smb->dead) { return; } + smb->dead = true; + if (NT_STATUS_EQUAL(NT_STATUS_UNSUCCESSFUL, status)) { status = NT_STATUS_UNEXPECTED_NETWORK_ERROR; } diff --git a/source4/librpc/rpc/dcerpc_smb2.c b/source4/librpc/rpc/dcerpc_smb2.c index 15605c21da..56f8e9b85c 100644 --- a/source4/librpc/rpc/dcerpc_smb2.c +++ b/source4/librpc/rpc/dcerpc_smb2.c @@ -44,12 +44,12 @@ static void pipe_dead(struct dcerpc_connection *c, NTSTATUS status) { struct smb2_private *smb = c->transport.private; - smb->dead = true; - if (smb->dead) { return; } + smb->dead = true; + if (NT_STATUS_EQUAL(NT_STATUS_UNSUCCESSFUL, status)) { status = NT_STATUS_UNEXPECTED_NETWORK_ERROR; } |