summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/pkcs7/pk7_lib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_lib.c b/src/lib/libcrypto/pkcs7/pk7_lib.c
index 9ade3df552..58e5c88a5e 100644
--- a/src/lib/libcrypto/pkcs7/pk7_lib.c
+++ b/src/lib/libcrypto/pkcs7/pk7_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pk7_lib.c,v 1.32 2026/08/30 16:52:56 tb Exp $ */ 1/* $OpenBSD: pk7_lib.c,v 1.33 2026/08/30 16:56:45 tb 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 *
@@ -680,6 +680,10 @@ PKCS7_stream(unsigned char ***boundary, PKCS7 *p7)
680 PKCS7error(PKCS7_R_NO_CONTENT); 680 PKCS7error(PKCS7_R_NO_CONTENT);
681 break; 681 break;
682 } 682 }
683 if (!PKCS7_type_is_data(p7->d.sign->contents)) {
684 PKCS7error(PKCS7_R_UNSUPPORTED_CONTENT_TYPE);
685 break;
686 }
683 os = p7->d.sign->contents->d.data; 687 os = p7->d.sign->contents->d.data;
684 break; 688 break;
685 689