From 9644ced73139843aaa97f26114f5388e4b34b112 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 5 May 2007 19:05:42 +0000 Subject: 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) --- source4/librpc/rpc/dcerpc_smb.c | 4 ++-- source4/librpc/rpc/dcerpc_smb2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/librpc') 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; } -- cgit