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;
}