crypto: fix return type prob reported by coverity · nodejs/node@a9c0689 · GitHub
Skip to content

Commit a9c0689

Browse files
committed
crypto: fix return type prob reported by coverity
Coverity correctly reported that the value returned by BIO_get_mem_data could be negative and the type provided for the return value was unsigned. Fix up the type and check. Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #42135 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 3ba4124 commit a9c0689

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/crypto/crypto_common.cc

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)