summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authorjsing <>2020-09-26 08:58:00 +0000
committerjsing <>2020-09-26 08:58:00 +0000
commit54565543a39e4f139757aeba9b823d6d2cd8a78a (patch)
treef04921c071b54b0b4937527030b55242f2f13d65 /src/lib/libssl/ssl_srvr.c
parent3345108d2a65403103b8b6331fac7b04a642dddd (diff)
downloadopenbsd-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_srvr.c')
0 files changed, 0 insertions, 0 deletions