From 1b057df6108f86385c84951f2edb6a5b1d9ad806 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 30 Aug 2019 17:13:08 -0700 Subject: [PATCH] When enabling SHOW_SECRETS one of the array counter variables for a secret had a type mismatch. Changed the index to a word32 to match the boundary variable's type. --- src/sniffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sniffer.c b/src/sniffer.c index 20a342036..8fcc537e6 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -1870,7 +1870,7 @@ static int ProcessClientKeyExchange(const byte* input, int* sslBytes, #ifdef SHOW_SECRETS { - int i; + word32 i; printf("pre master secret: "); for (i = 0; i < session->sslServer->arrays->preMasterSz; i++) printf("%02x", session->sslServer->arrays->preMasterSecret[i]);