forked from wolfSSL/wolfssl
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
|
||||
|
||||
ret = 0;
|
||||
#ifdef WOLFSSL_SNIFFER_KEY_CALLBACK
|
||||
if (KeyCb != NULL && ksInfo) {
|
||||
if (keyBuf == NULL) {
|
||||
@ -2701,6 +2702,7 @@ static int SetupKeys(const byte* input, int* sslBytes, SnifferSession* session,
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = 0;
|
||||
#ifdef WOLFSSL_SNIFFER_KEY_CALLBACK
|
||||
if (KeyCb != NULL && ksInfo) {
|
||||
if (keyBuf == NULL) {
|
||||
|
Reference in New Issue
Block a user