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:46:19 +0200 |
commit | 67e1b558e67a3bee1f20f8a9e067211b440404f8 (patch) | |
tree | 6708b0d03668ab1c8be43840a9d4c5752749d9c9 /apps/lib/apps.c | |
parent | fff244051763165886e9c0777f1c2bce71085047 (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)
Diffstat (limited to 'apps/lib/apps.c')
-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 227da4982d..a0990c2fc8 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -1186,7 +1186,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) |