From fca08f7cd60c72496450f946c07f6a77ab62f466 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 29 Aug 2018 10:34:17 +0900 Subject: [PATCH] Fix wrong function name Change-Id: I34aa6cc2574c5f7bcbb5db96772bf0734982abaf --- src/connection_mptcp.c | 3 ++- src/libnetwork_mptcp.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connection_mptcp.c b/src/connection_mptcp.c index 88546b0..7f1d776 100755 --- a/src/connection_mptcp.c +++ b/src/connection_mptcp.c @@ -47,7 +47,8 @@ EXPORT_API int connection_mptcp_enable(connection_h connection, connection_mptcp return CONNECTION_ERROR_NOT_SUPPORTED; } - if (enable == CONNECTION_MPTCP_DISABLE) { + if (enable <= CONNECTION_MPTCP_DISABLE + || enable > CONNECTION_MPTCP_ENABLE_SOCKOPT) { CONNECTION_LOG(CONNECTION_ERROR, "Use connection_mptcp_disable()"); return CONNECTION_ERROR_INVALID_PARAMETER; } diff --git a/src/libnetwork_mptcp.c b/src/libnetwork_mptcp.c index 61489b0..41648d5 100755 --- a/src/libnetwork_mptcp.c +++ b/src/libnetwork_mptcp.c @@ -86,7 +86,7 @@ int _connection_libnet_mptcp_enable(connection_mptcp_enable_e enable) { int rv = 0; - rv = net_mptcp_set_enable((int)enable); + rv = net_mptcp_set_enabled((int)enable); if (rv == NET_ERR_ACCESS_DENIED) { CONNECTION_LOG(CONNECTION_ERROR, "Access denied"); return CONNECTION_ERROR_PERMISSION_DENIED; -- 2.7.4