mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
EAP-TLS: Merge common error paths
There is no need to keep these identical error paths separate. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
7cb27f89f2
commit
18704f6cdc
@ -356,10 +356,8 @@ u8 * eap_peer_tls_derive_session_id(struct eap_sm *sm,
|
|||||||
struct tls_random keys;
|
struct tls_random keys;
|
||||||
u8 *out;
|
u8 *out;
|
||||||
|
|
||||||
if (tls_connection_get_random(sm->ssl_ctx, data->conn, &keys))
|
if (tls_connection_get_random(sm->ssl_ctx, data->conn, &keys) ||
|
||||||
return NULL;
|
keys.client_random == NULL || keys.server_random == NULL)
|
||||||
|
|
||||||
if (keys.client_random == NULL || keys.server_random == NULL)
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
*len = 1 + keys.client_random_len + keys.server_random_len;
|
*len = 1 + keys.client_random_len + keys.server_random_len;
|
||||||
|
Loading…
Reference in New Issue
Block a user