Skip to content

Commit

Permalink
Fixed undersized buffer causing base32 debugging output not to print.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb James DeLisle committed Nov 23, 2012
1 parent 7bec240 commit 9fe6551
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/DefaultInterfaceController.c
Expand Up @@ -200,9 +200,8 @@ static void pingCallback(void* vic)
struct Endpoint* ep = ic->endpointMap.values[i];
if (now > ep->timeOfLastMessage + ic->pingAfterMilliseconds) {
#ifdef Log_DEBUG
uint8_t key[32*5/4];
Base32_encode(key,32*5/4,
CryptoAuth_getHerPublicKey(ep->cryptoAuthIf),32);
uint8_t key[56];
Base32_encode(key, 56, CryptoAuth_getHerPublicKey(ep->cryptoAuthIf), 32);
#endif
if (now > ep->timeOfLastMessage + ic->unresponsiveAfterMilliseconds) {
// Lets skip 87% of pings when they're really down.
Expand Down

0 comments on commit 9fe6551

Please sign in to comment.