Skip to content

Commit

Permalink
Merge pull request #9440 from sezrab/mbedtls_test_ssl_message_queue_p…
Browse files Browse the repository at this point in the history
…op_info-2.28

[Backport 2.28] tests/ssl_helpers: Check that message queue is popped
  • Loading branch information
bensze01 authored Aug 1, 2024
2 parents 9aa9120 + a526528 commit 6c3ad6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/test_helpers/ssl_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,10 @@ int mbedtls_test_mock_tcp_recv_msg(void *ctx,
* happen in test environment, unless forced manually. */
}
}
mbedtls_test_ssl_message_queue_pop_info(queue, buf_len);
ret = mbedtls_test_ssl_message_queue_pop_info(queue, buf_len);
if (ret < 0) {
return ret;
}

return (msg_len > INT_MAX) ? INT_MAX : (int) msg_len;
}
Expand Down

0 comments on commit 6c3ad6a

Please sign in to comment.