diff options
author | jsing <> | 2014-05-29 11:28:18 +0000 |
---|---|---|
committer | jsing <> | 2014-05-29 11:28:18 +0000 |
commit | ecc9c4a424e52e20e2316634f1b21477adae2b57 (patch) | |
tree | 8912bbf31ae0ce261e303eaf575cc5e716a30e1b /src/lib/libssl/s3_lib.c | |
parent | 245ae4880e530f12d2b009a9053afc4ff8da74f9 (diff) | |
download | openbsd-ecc9c4a424e52e20e2316634f1b21477adae2b57.tar.gz openbsd-ecc9c4a424e52e20e2316634f1b21477adae2b57.tar.bz2 openbsd-ecc9c4a424e52e20e2316634f1b21477adae2b57.zip |
Fix another two cases where the return value of ssl_replace_hash() is
unchecked.
In the case of tls1_change_cipher_state(), it is fairly pointless to use
ssl_replace_hash(), since it does not initialise the hash and there is
special handling required in the DTLS write case. Instead, just inline
the part of ssl_replace_hash() that is needed and only
ssl_clear_hash_ctx() the write hash in the non-DTLS case.
Also add a detailed comment explaining why there needs to be specialised
handling for DTLS write context and where the contexts are actually freed.
ok miod@
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions