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