diff options
author | inoguchi <> | 2022-01-20 11:06:24 +0000 |
---|---|---|
committer | inoguchi <> | 2022-01-20 11:06:24 +0000 |
commit | a955910e693f0845dc59f4264502c16ec3aad590 (patch) | |
tree | e5ed244c6414e2522419a8efbb92bf715d387b1b /src/lib | |
parent | 92b3975cdb272c000082872aacfe61ab33286b6f (diff) | |
download | openbsd-a955910e693f0845dc59f4264502c16ec3aad590.tar.gz openbsd-a955910e693f0845dc59f4264502c16ec3aad590.tar.bz2 openbsd-a955910e693f0845dc59f4264502c16ec3aad590.zip |
Add check for BIO_indent return value
CID 24778
ok jsing@ millert@ tb@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/evp/p_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index 89ce4c451a..cdd38e4e30 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/lib/libcrypto/evp/p_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_lib.c,v 1.27 2021/12/12 21:30:13 tb Exp $ */ | 1 | /* $OpenBSD: p_lib.c,v 1.28 2022/01/20 11:06:24 inoguchi Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -526,7 +526,8 @@ EVP_PKEY_free_it(EVP_PKEY *x) | |||
526 | static int | 526 | static int |
527 | unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) | 527 | unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) |
528 | { | 528 | { |
529 | BIO_indent(out, indent, 128); | 529 | if (!BIO_indent(out, indent, 128)) |
530 | return 0; | ||
530 | BIO_printf(out, "%s algorithm \"%s\" unsupported\n", | 531 | BIO_printf(out, "%s algorithm \"%s\" unsupported\n", |
531 | kstr, OBJ_nid2ln(pkey->type)); | 532 | kstr, OBJ_nid2ln(pkey->type)); |
532 | return 1; | 533 | return 1; |