Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Apr 2, 2024
1 parent e1df345 commit cec3006
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tls/s2n_connection_serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int s2n_connection_serialize(struct s2n_connection *conn, uint8_t *buffer, uint3
POSIX_ENSURE_REF(conn->secure);
POSIX_ENSURE_REF(conn->secure->cipher_suite);
POSIX_ENSURE_REF(conn->config);
POSIX_ENSURE_REF(buffer);

POSIX_ENSURE(conn->config->serialized_connection_version != S2N_SERIALIZED_CONN_NONE,
S2N_ERR_INVALID_STATE);
Expand Down Expand Up @@ -252,6 +253,7 @@ int s2n_connection_deserialize(struct s2n_connection *conn, uint8_t *buffer, uin
{
POSIX_ENSURE_REF(conn);
POSIX_ENSURE_REF(conn->secure);
POSIX_ENSURE_REF(buffer);

/* Read parsed values into a temporary struct so that the connection is unaltered if parsing fails */
struct s2n_connection_deserialize parsed_values = { 0 };
Expand Down

0 comments on commit cec3006

Please sign in to comment.