mbed TLS upgraded to 2.6.0
Fork of mbedtls by
Diff: library/net_sockets.c
- Revision:
- 1:9ebc941037d5
- Parent:
- 0:cdf462088d13
--- a/library/net_sockets.c Thu Jan 05 00:18:44 2017 +0000 +++ b/library/net_sockets.c Fri Sep 29 18:41:59 2017 +0100 @@ -133,7 +133,8 @@ /* * Initiate a TCP connection with host:port and the given protocol */ -int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto ) +int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, + const char *port, int proto ) { int ret; struct addrinfo hints, *addr_list, *cur; @@ -322,7 +323,7 @@ { /* TCP: actual accept() */ ret = client_ctx->fd = (int) accept( bind_ctx->fd, - (struct sockaddr *) &client_addr, &n ); + (struct sockaddr *) &client_addr, &n ); } else {