Skip to content

Commit 63dd054

Browse files
committed
crypto_box_keypair() cannot fail - Add lcov exclusion.
1 parent ee97d5e commit 63dd054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsodium/crypto_box/crypto_box_seal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ crypto_box_seal(unsigned char *c, const unsigned char *m,
2929
int ret;
3030

3131
if (crypto_box_keypair(epk, esk) != 0) {
32-
return -1;
32+
return -1; /* LCOV_EXCL_LINE */
3333
}
3434
memcpy(c, epk, crypto_box_PUBLICKEYBYTES);
3535
_crypto_box_seal_nonce(nonce, epk, pk);

0 commit comments

Comments
 (0)