Skip to content

Commit 9312f3c

Browse files
committed
wolfssl/wolfcrypt/types.h: define USE_WOLF_STRDUP for the fallback definition of XSTRDUP regardless of WOLFSSL_NO_MALLOC (wc_strdup_ex() uses XMALLOC(), which may be a user or static pool allocator).
1 parent 0665ff9 commit 9312f3c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,7 @@ typedef struct w64wrapper {
943943
WOLFSSL_API int wc_strncasecmp(const char *s1, const char *s2, size_t n);
944944
#endif
945945

946-
#if !defined(XSTRDUP) && !defined(USE_WOLF_STRDUP) &&\
947-
!defined (WOLFSSL_NO_MALLOC)
946+
#if !defined(XSTRDUP) && !defined(USE_WOLF_STRDUP)
948947
#define USE_WOLF_STRDUP
949948
#endif
950949
#ifdef USE_WOLF_STRDUP

0 commit comments

Comments
 (0)