From: Jaehyun Kim Date: Mon, 3 Sep 2018 04:10:45 +0000 (+0000) Subject: Merge "Fix wrong function name" into tizen X-Git-Tag: submit/tizen/20180903.045143^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae28f96e65569f277f7708abadf88ed26e4175ba;p=platform%2Fcore%2Fapi%2Fconnection.git Merge "Fix wrong function name" into tizen --- ae28f96e65569f277f7708abadf88ed26e4175ba diff --cc src/connection_mptcp.c index e715155,7f1d776..e101e41 --- a/src/connection_mptcp.c +++ b/src/connection_mptcp.c @@@ -42,12 -47,8 +42,13 @@@ EXPORT_API int connection_mptcp_enable( return CONNECTION_ERROR_NOT_SUPPORTED; } + if (!(_connection_check_handle_validity(connection))) { + CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter"); + return CONNECTION_ERROR_INVALID_PARAMETER; + } + - 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; }