]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Don't build SPTPS test programs.
[meshlink] / src / net_packet.c
index e0b364311cf8d18d3e3e6cee91733e9d90c811c4..3eea0517e5a7a4287d93980576fb06758392eec1 100644 (file)
@@ -433,9 +433,11 @@ bool receive_sptps_record(void *handle, uint8_t type, const void *data, uint16_t
 
        if(type == SPTPS_HANDSHAKE) {
                if(!from->status.validkey) {
+                       logger(mesh, MESHLINK_INFO, "SPTPS key exchange with %s (%s) succesful", from->name, from->hostname);
                        from->status.validkey = true;
                        from->status.waitingforkey = false;
-                       logger(mesh, MESHLINK_INFO, "SPTPS key exchange with %s (%s) succesful", from->name, from->hostname);
+                       if(from->utcp)
+                               utcp_reset_timers(from->utcp);
                }
                return true;
        }