openssl: explicitly ignore BIO_reset() return value

This caused some -Wall errors on certain gcc versions due
to BIO_reset() being a macro with explicit cast.
cute-signatures
Timo Teräs 2021-06-21 13:03:16 +03:00
parent 0683b069ba
commit 2433c9d23b
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ int apk_pkey_load(struct apk_pkey *pkey, int dirfd, const char *fn)
key = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL);
if (!key) {
BIO_reset(bio);
(void)BIO_reset(bio);
key = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
}
ERR_clear_error();