code on the 2nd run.
thanks volker for finding this!
metze
{
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;
}
{
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;
}