From c3947269282b921f797d661f6751117bdf70f36e Mon Sep 17 00:00:00 2001 From: Logan oos Even <46396513+Logan007@users.noreply.github.com> Date: Thu, 22 Jul 2021 11:06:09 +0200 Subject: [PATCH] narrowed sn's edge-last-seen update mechanism (#734) * fortified user/pw auth scheme * narrowed sn's edge-last-seen update mechanism --- src/sn_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sn_utils.c b/src/sn_utils.c index 0698a63..7fa5131 100644 --- a/src/sn_utils.c +++ b/src/sn_utils.c @@ -738,7 +738,7 @@ static int update_edge (n2n_sn_t *sss, } } - if(scan != NULL) { + if((scan != NULL) && (ret != update_edge_auth_fail)) { scan->last_seen = now; }