]> git.ipfire.org Git - thirdparty/hostap.git/commit
TLS client: Check DH parameters using a local variable
authorJouni Malinen <j@w1.fi>
Sun, 23 Nov 2014 15:48:34 +0000 (17:48 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Nov 2014 15:48:34 +0000 (17:48 +0200)
commit76874379d35d854b433243dbd6c6e8ff6a051da0
treebb049a90f87c153ab6a2fdc8f33072016f604fe0
parent43aee9489954094b0c3792661f9e1505f9e5cbfe
TLS client: Check DH parameters using a local variable

Use a temporary, local variable to check the DH parameters received from
the server before assigning the length to the struct tlsv1_client
variables. This will hopefully make it easier for static analyzers to
figure out that there is bounds checking for the value. (CID 72699)

Signed-off-by: Jouni Malinen <j@w1.fi>
src/tls/tlsv1_client_read.c