1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

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)
This commit is contained in:
Stefan Metzmacher 2007-05-05 19:05:42 +00:00 committed by Gerald (Jerry) Carter
parent e0e8fc3db4
commit 9644ced731
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}