Skip to content

Commit afc66ee

Browse files
fixup! Fix empty AKID/SKID handling
1 parent d13fa5a commit afc66ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/x509/v3_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ int X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, const char *section,
340340
val->name, val->value)) == NULL)
341341
return 0;
342342
if (sk != NULL) {
343-
if (ctx->flags & X509V3_CTX_REPLACE)
343+
if ((ctx->flags & X509V3_CTX_REPLACE) != 0)
344344
delete_ext(*sk, ext);
345345
if ((ctx->flags & X509V3_CTX_REPLACE) == 0
346346
|| ctx->subject_req != NULL || (i != akid && i != skid)

0 commit comments

Comments
 (0)