summaryrefslogtreecommitdiffhomepage
path: root/process-packet.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-26 00:24:02 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-26 00:24:02 +0800
commitd277f140ba37472640c63cae4ce2dafa4799ddfc (patch)
tree54c3b1ee46efbc8fe11222ce2853a64688a269c6 /process-packet.c
parent61267f85035c0c77059992f50ef20f62e192ba04 (diff)
parentc917807b1c89b93b317d56ce2905b5d6d6468a11 (diff)
merge rsa-sha256
Diffstat (limited to 'process-packet.c')
-rw-r--r--process-packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/process-packet.c b/process-packet.c
index c3f3a76..9454160 100644
--- a/process-packet.c
+++ b/process-packet.c
@@ -51,8 +51,6 @@ void process_packet() {
type = buf_getbyte(ses.payload);
TRACE(("process_packet: packet type = %d, len %d", type, ses.payload->len))
- ses.lastpacket = type;
-
now = monotonic_now();
ses.last_packet_time_keepalive_recv = now;
@@ -156,6 +154,7 @@ void process_packet() {
recv_unimplemented();
out:
+ ses.lastpacket = type;
buf_free(ses.payload);
ses.payload = NULL;