diff options
author | tb <> | 2020-09-03 17:29:05 +0000 |
---|---|---|
committer | tb <> | 2020-09-03 17:29:05 +0000 |
commit | 64aeb329634d544ed92d444ec7731ad7f75d04f1 (patch) | |
tree | 467b799d2c6a5c331b6463884029f4a27fba6ac3 /src/regress | |
parent | 4bf78c9d27fd63450872f4391ac1bd558c36d841 (diff) | |
download | openbsd-64aeb329634d544ed92d444ec7731ad7f75d04f1.tar.gz openbsd-64aeb329634d544ed92d444ec7731ad7f75d04f1.tar.bz2 openbsd-64aeb329634d544ed92d444ec7731ad7f75d04f1.zip |
Clean up asn1/x_info.c
Instead of using malloc(3) and manually setting part of the structure to
zero, part to something else and leaving the rest uninitialized, we can
benefit from the fact that there's this thing called calloc(3).
Moreover, all variants of free(3) in libcrypto are NULL safe.
ok beck inoguchi
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions