From c501f9cbb9c878ab1c870217377a3350814e2fac Mon Sep 17 00:00:00 2001 From: Ivan Krylov Date: Wed, 28 Mar 2018 17:21:54 +0300 Subject: [PATCH 1/2] mbedtls_net_bind: ip_len can be NULL if client_ip is null --- include/mbedtls/net.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/net.h b/include/mbedtls/net.h index 8c6534cfb..1b59d18c0 100644 --- a/include/mbedtls/net.h +++ b/include/mbedtls/net.h @@ -117,9 +117,10 @@ int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char * * \param bind_ctx Relevant socket * \param client_ctx Will contain the connected client socket - * \param client_ip Will contain the client IP address + * \param client_ip Will contain the client IP address, can be NULL * \param buf_size Size of the client_ip buffer - * \param ip_len Will receive the size of the client IP written + * \param ip_len Will receive the size of the client IP written, + * can be NULL if client_ip is null * * \return 0 if successful, or * MBEDTLS_ERR_NET_ACCEPT_FAILED, or From 1110a6fa633d9d1e67bc9b0664781d0f758db9fd Mon Sep 17 00:00:00 2001 From: Ivan Krylov Date: Wed, 28 Mar 2018 17:25:12 +0300 Subject: [PATCH 2/2] Add ChangeLog entry --- ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog b/ChangeLog index d5f28a801..8bebcc741 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ Changes * Improve testing in configurations that omit certain hashes or public-key algorithms. Includes contributions by Gert van Dijk. * Improve negative testing of X.509 parsing. + * Improve the documentation of mbedtls_net_accept(). Contributed by Ivan Krylov. = mbed TLS 2.1.11 branch released 2018-03-16