forked from wolfSSL/wolfssl
Fixes from using cppcheck tool
Various fixes for uninitialized variable use. sniffer.c: close file when seek fails tls.c: fix QSH_GET_SIZE macro wolfio.c: uIPGenerateCookie: use the parameter, _ctx, instead of self referencing. wolfssl_adds.c: check for equivalent to XBADFILE to indicate error. SP: change right shift of signed value to unsigned sp_int.h: define 128-bit types types.h: change a XMALLOC define to not use (,,) - cppcheck doesn't like it and is unnecessary.
This commit is contained in:
@@ -2892,7 +2892,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (doSTARTTLS) {
|
||||
if (doSTARTTLS && starttlsProt != NULL) {
|
||||
if (XSTRNCMP(starttlsProt, "smtp", 4) == 0) {
|
||||
if (SMTP_Shutdown(ssl, wc_shutdown) != WOLFSSL_SUCCESS) {
|
||||
wolfSSL_free(ssl); ssl = NULL;
|
||||
|
Reference in New Issue
Block a user