remove unnecessary check on pubKey

This commit is contained in:
Moisés Guimarães
2014-07-08 13:03:12 -03:00
parent f8cf3bf853
commit d6f5f57452

View File

@@ -3064,13 +3064,11 @@ static int ConfirmSignature(const byte* buf, word32 bufSz,
CYASSL_MSG("ECC Verify didn't match"); CYASSL_MSG("ECC Verify didn't match");
} else } else
ret = 1; /* match */ ret = 1; /* match */
if (pubKey) { ecc_free(pubKey);
ecc_free(pubKey);
#ifdef CYASSL_SMALL_STACK #ifdef CYASSL_SMALL_STACK
XFREE(pubKey, NULL, DYNAMIC_TYPE_TMP_BUFFER); XFREE(pubKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
#endif #endif
}
} }
#endif /* HAVE_ECC */ #endif /* HAVE_ECC */
default: default: