diff options
author | 2020-09-26 08:58:00 +0000 | |
---|---|---|
committer | 2020-09-26 08:58:00 +0000 | |
commit | 1987507fa9ec820e99a651ad0ee5e37076e35a77 (patch) | |
tree | 8480a7e2c81919c7753b6b7baf72c91c2c126cd8 /lib/libssl/d1_lib.c | |
parent | Refactor dtls1_clear_queues() (diff) | |
download | wireguard-openbsd-1987507fa9ec820e99a651ad0ee5e37076e35a77.tar.xz wireguard-openbsd-1987507fa9ec820e99a651ad0ee5e37076e35a77.zip |
Have dtls1_hm_fragment_new() call dtls1_hm_fragment_free() on failure.
Rather than using local variables and having to remember which things need
to be freed upon a failure at a certain point, simply allocate into the
hm_fragment struct and call dtls1_hm_fragment_free() on failure.
Also use calloc() to ensure memory is appropriately zeroed/initialised.
ok tb@
Diffstat (limited to 'lib/libssl/d1_lib.c')
0 files changed, 0 insertions, 0 deletions