Skip to content

Commit 8b7b675

Browse files
committed
macro guard with WOLFSSL_SMALL_STACK to prevent dead code
1 parent 1ac4ba2 commit 8b7b675

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18027,10 +18027,13 @@ static word32 SetAlgoIDImpl(int algoOID, byte* output, int type, int curveSz,
1802718027
word32 algoSz = 0;
1802818028

1802918029
CALLOC_ASNSETDATA(dataASN, algoIdASN_Length, ret, NULL);
18030+
18031+
#ifdef WOLFSSL_SMALL_STACK
1803018032
if(ret < 0) {
1803118033
/* Catch MEMORY_E */
1803218034
return 0;
1803318035
}
18036+
#endif
1803418037

1803518038
algoName = OidFromId((word32)algoOID, (word32)type, &algoSz);
1803618039
if (algoName == NULL) {

0 commit comments

Comments
 (0)