commit | 3d7d00ad23a490eed6d78db58bbbe3dba99f8fef | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Jun 30 15:55:03 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Jun 30 16:50:37 2015 +0200 |
tree | 9c5481e172891baed62ce07ee0de41213bdd8454 | |
parent | 5db64328aba32501a1c4a296bfbb2ee3891b4474 [diff] [blame] |
Rename mbedtls_net_close() to mbedtls_net_free() close() may be more meaningful, but free() is symmetric with _init(), and more consistent with all other modules
diff --git a/library/net.c b/library/net.c index 0576ed6..ed8ed7a 100644 --- a/library/net.c +++ b/library/net.c
@@ -521,7 +521,7 @@ /* * Gracefully close the connection */ -void mbedtls_net_close( mbedtls_net_context *ctx ) +void mbedtls_net_free( mbedtls_net_context *ctx ) { if( ctx->fd == -1 ) return;