From 4190318c85c57a3cc6d9ac5e16cd4231cb69f3e6 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Fri, 28 Jan 2022 10:41:21 -0800 Subject: [PATCH] Fix typo in constant name --- node/Constants.hpp | 2 +- node/Peer.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/Constants.hpp b/node/Constants.hpp index 760a8ad2f..ca23a7e5f 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -523,7 +523,7 @@ /** * Maximum number of VERB_NETWORK_CREDENTIALS within cutoff time */ -#define ZT_PEER_CREDEITIALS_CUTOFF_LIMIT 15 +#define ZT_PEER_CREDENTIALS_CUTOFF_LIMIT 15 /** * WHOIS rate limit (we allow these to be pretty fast) diff --git a/node/Peer.hpp b/node/Peer.hpp index fd3a9a589..2368e9318 100644 --- a/node/Peer.hpp +++ b/node/Peer.hpp @@ -391,7 +391,7 @@ public: ++_credentialsCutoffCount; else _credentialsCutoffCount = 0; _lastCredentialsReceived = now; - return (_credentialsCutoffCount < ZT_PEER_CREDEITIALS_CUTOFF_LIMIT); + return (_credentialsCutoffCount < ZT_PEER_CREDENTIALS_CUTOFF_LIMIT); } /**