summaryrefslogtreecommitdiff
path: root/L2Code.c
diff options
context:
space:
mode:
authorJohn Wiseman <john.wiseman@cantab.net>2023-05-26 08:24:33 +0100
committerJohn Wiseman <john.wiseman@cantab.net>2023-05-26 08:24:33 +0100
commita21121fbfce48307740e6ade5f4f16531501b053 (patch)
tree20cc0efed3f2e293d735667174d345eada14bf39 /L2Code.c
parent4924c1223ef5e47353ef34892b732c2081096427 (diff)
6.0.23.7123.76
Diffstat (limited to 'L2Code.c')
-rw-r--r--L2Code.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/L2Code.c b/L2Code.c
index ecf0de8..8651fdb 100644
--- a/L2Code.c
+++ b/L2Code.c
@@ -1122,10 +1122,10 @@ VOID L2LINKACTIVE(struct _LINKTABLE * LINK, struct PORTCONTROL * PORT, MESSAGE *
}
InformPartner(LINK, NORMALCLOSE); // SEND DISC TO OTHER END
+ LINK->CIRCUITPOINTER = 0;
L2SABM(LINK, PORT, Buffer, ADJBUFFER, MSGFLAG); // Process the SABM
return;
-
}
L2_PROCESS(LINK, PORT, Buffer, CTL, MSGFLAG);
@@ -3460,8 +3460,10 @@ VOID InformPartner(struct _LINKTABLE * LINK, int Reason)
}
if (LINK->CIRCUITPOINTER)
+ {
CloseSessionPartner(LINK->CIRCUITPOINTER);
-
+ CLEARSESSIONENTRY(LINK->CIRCUITPOINTER);
+ }
}