mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
fix jenkins failure part2
This commit is contained in:
@ -25197,12 +25197,14 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
|||||||
const unsigned char* ip, size_t iplen)
|
const unsigned char* ip, size_t iplen)
|
||||||
{
|
{
|
||||||
int ret = WOLFSSL_FAILURE;
|
int ret = WOLFSSL_FAILURE;
|
||||||
|
#ifndef NO_FILESYSTEM
|
||||||
char* buf = NULL;
|
char* buf = NULL;
|
||||||
char* p = NULL;
|
char* p = NULL;
|
||||||
word32 val = 0;
|
word32 val = 0;
|
||||||
int i;
|
int i;
|
||||||
const size_t max_ipv6_len = 40;
|
const size_t max_ipv6_len = 40;
|
||||||
byte write_zero = 0;
|
byte write_zero = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* sanity check */
|
/* sanity check */
|
||||||
if (param == NULL || (iplen != 0 && iplen != 4 && iplen != 16)) {
|
if (param == NULL || (iplen != 0 && iplen != 4 && iplen != 16)) {
|
||||||
@ -25212,7 +25214,7 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
|||||||
#ifndef NO_FILESYSTEM
|
#ifndef NO_FILESYSTEM
|
||||||
if (iplen == 4) {
|
if (iplen == 4) {
|
||||||
/* ipv4 www.xxx.yyy.zzz max 15 length + Null termination */
|
/* ipv4 www.xxx.yyy.zzz max 15 length + Null termination */
|
||||||
buf = XMALLOC(16, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
buf = (char*)XMALLOC(16, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
|
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
WOLFSSL_MSG("failed malloc");
|
WOLFSSL_MSG("failed malloc");
|
||||||
@ -25248,7 +25250,7 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
|||||||
* ivp6 normal address scheme, not dual adress scheme,
|
* ivp6 normal address scheme, not dual adress scheme,
|
||||||
* to re-construct IP address in ascii.
|
* to re-construct IP address in ascii.
|
||||||
*/
|
*/
|
||||||
buf = XMALLOC(max_ipv6_len, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
buf = (char*)XMALLOC(max_ipv6_len, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
|
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
WOLFSSL_MSG("failed malloc");
|
WOLFSSL_MSG("failed malloc");
|
||||||
@ -25308,7 +25310,6 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
|||||||
(void)param;
|
(void)param;
|
||||||
(void)ip;
|
(void)ip;
|
||||||
(void)iplen;
|
(void)iplen;
|
||||||
(void)buf;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user