]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tls] Fix wrong memset in function tls_clear_cipher
authorStefan Weil <sw@weilnetz.de>
Wed, 4 Apr 2012 16:16:01 +0000 (18:16 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 10 Apr 2012 12:14:15 +0000 (13:14 +0100)
commitdcccb1fb7bb79bdd018b23ca203d26cca98a1d3f
tree9857c974e6513d85df1878ffffc529a4916478dc
parentede37e493d61c0cfbe04ab38bcc9819216756abf
[tls] Fix wrong memset in function tls_clear_cipher

sizeof(cipherspec) is obviously wrong in this context, because it will
only zero the first 4 or 8 bytes (cipherspec is a pointer).

This problem was reported by cppcheck.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tls.c