Skip to content

Commit fc348da

Browse files
committed
fix: escape error code operands
1 parent 9cbc3f9 commit fc348da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/cryptocb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ int wc_CryptoCb_Sha512Hash(wc_Sha512* sha512, const byte* in,
17531753
cryptoInfo.hash.type = WC_HASH_TYPE_SHA512_224;
17541754
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
17551755
ret = wc_CryptoCb_TranslateErrorCode(ret);
1756-
if (ret != CRYPTOCB_UNAVAILABLE)
1756+
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
17571757
return ret;
17581758
}
17591759
#endif
@@ -1762,7 +1762,7 @@ int wc_CryptoCb_Sha512Hash(wc_Sha512* sha512, const byte* in,
17621762
cryptoInfo.hash.type = WC_HASH_TYPE_SHA512_256;
17631763
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
17641764
ret = wc_CryptoCb_TranslateErrorCode(ret);
1765-
if (ret != CRYPTOCB_UNAVAILABLE)
1765+
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
17661766
return ret;
17671767
}
17681768
#endif

0 commit comments

Comments
 (0)