mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix for possible ret
may be used uninitialized.
This commit is contained in:
@ -2595,6 +2595,7 @@ static int SetupKeys(const byte* input, int* sslBytes, SnifferSession* session,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ret = 0;
|
||||||
#ifdef WOLFSSL_SNIFFER_KEY_CALLBACK
|
#ifdef WOLFSSL_SNIFFER_KEY_CALLBACK
|
||||||
if (KeyCb != NULL && ksInfo) {
|
if (KeyCb != NULL && ksInfo) {
|
||||||
if (keyBuf == NULL) {
|
if (keyBuf == NULL) {
|
||||||
@ -2701,6 +2702,7 @@ static int SetupKeys(const byte* input, int* sslBytes, SnifferSession* session,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ret = 0;
|
||||||
#ifdef WOLFSSL_SNIFFER_KEY_CALLBACK
|
#ifdef WOLFSSL_SNIFFER_KEY_CALLBACK
|
||||||
if (KeyCb != NULL && ksInfo) {
|
if (KeyCb != NULL && ksInfo) {
|
||||||
if (keyBuf == NULL) {
|
if (keyBuf == NULL) {
|
||||||
|
Reference in New Issue
Block a user