diff options
| author | tb <> | 2021-12-24 03:11:56 +0000 |
|---|---|---|
| committer | tb <> | 2021-12-24 03:11:56 +0000 |
| commit | 156bb0a2d892a15056aaa5831fdec009cdf6f694 (patch) | |
| tree | aa6b7359d7cc0a2c4a763786ccdbba1fee4c2eb6 /src/regress/lib | |
| parent | 2650ff217f62e9db72a819b45a9c19a9d4eee28d (diff) | |
| download | openbsd-156bb0a2d892a15056aaa5831fdec009cdf6f694.tar.gz openbsd-156bb0a2d892a15056aaa5831fdec009cdf6f694.tar.bz2 openbsd-156bb0a2d892a15056aaa5831fdec009cdf6f694.zip | |
Style tweak in {d2i,i2d}_IPAddrBlocks()
Diffstat (limited to 'src/regress/lib')
| -rw-r--r-- | src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c b/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c index 65bbf2294b..b7f6c11626 100644 --- a/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c +++ b/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rfc3779.c,v 1.1 2021/12/24 03:00:37 tb Exp $ */ | 1 | /* $OpenBSD: rfc3779.c,v 1.2 2021/12/24 03:11:56 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -383,9 +383,9 @@ get_IPAddrBlocks_it(void) | |||
| 383 | static __unused IPAddrBlocks * | 383 | static __unused IPAddrBlocks * |
| 384 | d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) | 384 | d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) |
| 385 | { | 385 | { |
| 386 | const ASN1_ITEM_EXP *my_IPAddrBlocks_it = get_IPAddrBlocks_it(); | 386 | const ASN1_ITEM_EXP *my_IPAddrBlocks_it; |
| 387 | 387 | ||
| 388 | if (my_IPAddrBlocks_it == NULL) | 388 | if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) |
| 389 | return NULL; | 389 | return NULL; |
| 390 | 390 | ||
| 391 | return (IPAddrBlocks *)ASN1_item_d2i((ASN1_VALUE **)addrs, in, len, | 391 | return (IPAddrBlocks *)ASN1_item_d2i((ASN1_VALUE **)addrs, in, len, |
| @@ -395,9 +395,9 @@ d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) | |||
| 395 | static int | 395 | static int |
| 396 | i2d_IPAddrBlocks(IPAddrBlocks *addrs, unsigned char **out) | 396 | i2d_IPAddrBlocks(IPAddrBlocks *addrs, unsigned char **out) |
| 397 | { | 397 | { |
| 398 | const ASN1_ITEM_EXP *my_IPAddrBlocks_it = get_IPAddrBlocks_it(); | 398 | const ASN1_ITEM_EXP *my_IPAddrBlocks_it; |
| 399 | 399 | ||
| 400 | if (my_IPAddrBlocks_it == NULL) | 400 | if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) |
| 401 | return -1; | 401 | return -1; |
| 402 | 402 | ||
| 403 | return ASN1_item_i2d((ASN1_VALUE *)addrs, out, my_IPAddrBlocks_it); | 403 | return ASN1_item_i2d((ASN1_VALUE *)addrs, out, my_IPAddrBlocks_it); |
