forked from wolfSSL/wolfssl
Fix for minor warning with chain input enabled and async disabled.
This commit is contained in:
20
src/ssl.c
20
src/ssl.c
@@ -13695,20 +13695,20 @@ void AddSession(WOLFSSL* ssl)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_SESSION_STATS) && defined(WOLFSSL_PEAK_SESSIONS)
|
#if defined(WOLFSSL_SESSION_STATS) && defined(WOLFSSL_PEAK_SESSIONS)
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
word32 active = 0;
|
word32 active = 0;
|
||||||
|
|
||||||
error = get_locked_session_stats(&active, NULL, NULL);
|
error = get_locked_session_stats(&active, NULL, NULL);
|
||||||
if (error == WOLFSSL_SUCCESS) {
|
if (error == WOLFSSL_SUCCESS) {
|
||||||
error = 0; /* back to this function ok */
|
error = 0; /* back to this function ok */
|
||||||
|
|
||||||
if (PeakSessions < active) {
|
if (PeakSessions < active) {
|
||||||
PeakSessions = active;
|
PeakSessions = active;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* WOLFSSL_SESSION_STATS && WOLFSSL_PEAK_SESSIONS */
|
}
|
||||||
|
#endif /* WOLFSSL_SESSION_STATS && WOLFSSL_PEAK_SESSIONS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -736,12 +736,11 @@ int main(int argc, char** argv)
|
|||||||
#else
|
#else
|
||||||
chain = (void*)packet;
|
chain = (void*)packet;
|
||||||
chainSz = header.caplen;
|
chainSz = header.caplen;
|
||||||
(void)isChain;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
do {
|
do {
|
||||||
WOLF_EVENT* events[1]; /* poll for single event */
|
WOLF_EVENT* events[WOLF_ASYNC_MAX_PENDING];
|
||||||
int eventCount = 0;
|
int eventCount = 0;
|
||||||
|
|
||||||
/* For async call the original API again with same data,
|
/* For async call the original API again with same data,
|
||||||
@@ -795,6 +794,7 @@ int main(int argc, char** argv)
|
|||||||
break; /* we're done reading file */
|
break; /* we're done reading file */
|
||||||
}
|
}
|
||||||
FreeAll();
|
FreeAll();
|
||||||
|
(void)isChain;
|
||||||
|
|
||||||
return hadBadPacket ? EXIT_FAILURE : EXIT_SUCCESS;
|
return hadBadPacket ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user