From ee1d655f2f1ede6da66b6268974d6f9585c616b3 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 14 Oct 2012 14:45:27 +0200 Subject: [PATCH] Only log success of initial datagram SPTPS handshake. --- src/net_packet.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/net_packet.c b/src/net_packet.c index c61bc60a..67ebc223 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -674,9 +674,11 @@ bool receive_sptps_record(void *handle, uint8_t type, const char *data, uint16_t node_t *from = handle; if(type == SPTPS_HANDSHAKE) { - from->status.validkey = true; - from->status.waitingforkey = false; - logger(DEBUG_META, LOG_INFO, "SPTPS key exchange with %s (%s) succesful", from->name, from->hostname); + if(!from->status.validkey) { + from->status.validkey = true; + from->status.waitingforkey = false; + logger(DEBUG_META, LOG_INFO, "SPTPS key exchange with %s (%s) succesful", from->name, from->hostname); + } return true; } -- 2.20.1