From c0d58391e938eb3a5d53d2d855b29e22ff865c7b Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 5 Oct 2015 12:16:46 +0200 Subject: [PATCH] proxy: fix linphone_proxy_config_set_route return code --- coreapi/proxy.c | 4 +++- tester/CMakeLists.txt | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index 61c56e611..6d9ba8181 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -279,9 +279,11 @@ int linphone_proxy_config_set_route(LinphoneProxyConfig *cfg, const char *route) return 0; }else{ ms_free(tmp); + return -1; } + } else { + return 0; } - return -1; } bool_t linphone_proxy_config_check(LinphoneCore *lc, LinphoneProxyConfig *cfg){ diff --git a/tester/CMakeLists.txt b/tester/CMakeLists.txt index 5f8e7f8c5..cef7f7a4f 100644 --- a/tester/CMakeLists.txt +++ b/tester/CMakeLists.txt @@ -53,8 +53,6 @@ find_program(SIPP_PROGRAM NAMES sipp sipp.exe ONLY_CMAKE_FIND_ROOT_PATH) if(SIPP_PROGRAM) add_definitions(-DHAVE_SIPP=1) add_definitions(-DSIPP_COMMAND="${SIPP_PROGRAM}") -else() - message(WARNING "Could not find sipp!") endif() add_definitions(-DBC_CONFIG_FILE="config.h")