diff options
author | Hartmut Holzgraefe <hartmut@php.net> | 2022-06-14 10:39:47 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-06-16 15:47:03 +0200 |
commit | 55b7fa2609e1fe354517a745b78182323bce24ed (patch) | |
tree | 4ca650ceb866663a1872476f3ccf8114faefbf86 /apps | |
parent | e3ba938b584275839dda404d846abdb06a88693f (diff) |
Have set_dateopt() return 1 on success to make -dateopt work
Fixes #18553
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18554)
(cherry picked from commit 67e1b558e67a3bee1f20f8a9e067211b440404f8)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lib/apps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c index a7ac4368ef..16161964b0 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -1148,7 +1148,9 @@ int set_dateopt(unsigned long *dateopt, const char *arg) *dateopt = ASN1_DTFLGS_RFC822; else if (OPENSSL_strcasecmp(arg, "iso_8601") == 0) *dateopt = ASN1_DTFLGS_ISO8601; - return 0; + else + return 0; + return 1; } int set_ext_copy(int *copy_type, const char *arg) |