diff options
author | jsing <> | 2020-09-26 08:58:00 +0000 |
---|---|---|
committer | jsing <> | 2020-09-26 08:58:00 +0000 |
commit | f4c0739084aedd02b6fe70b1b3fd77fb833e59c1 (patch) | |
tree | f04921c071b54b0b4937527030b55242f2f13d65 /src/lib/libssl/tls13_server.c | |
parent | 4284d3c95b72551c4d0f88087d7ef3e863d48e86 (diff) | |
download | openbsd-f4c0739084aedd02b6fe70b1b3fd77fb833e59c1.tar.gz openbsd-f4c0739084aedd02b6fe70b1b3fd77fb833e59c1.tar.bz2 openbsd-f4c0739084aedd02b6fe70b1b3fd77fb833e59c1.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 'src/lib/libssl/tls13_server.c')
0 files changed, 0 insertions, 0 deletions