tls: fix incorrect length for certificate message
commit759ac5236d0f70799d2dc6d32b52d8eb3ec21723
authorStefan Becker <chemobejk@gmail.com>
Sun, 10 Jun 2012 12:23:36 +0000 (10 15:23 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sun, 10 Jun 2012 12:38:33 +0000 (10 15:38 +0300)
treef54a6d0cd9ab44706f1f1a57f2f2d0459185ae26
parentfd38333a38e4a937f58b44802c62fc7274d4a773
tls: fix incorrect length for certificate message

tls_client_certificate() didn't include the 3 bytes for the outer vector
length in the message size when calling compile_handshake_msg(). This
caused a buffer overrun when the code was compiled on a 32-bit platform.

This must be the problem commit b2418af604cc274b08351aa632b264e1dec6d95f
was intended to work around.
(cherry picked from commit de3ee74cb9392e555b6813792fc908ad6f59fabe)
src/core/sipe-tls.c