From 8288bfeeac3e2f40e6f34212886379fa507c7e0f Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 27 Mar 2017 11:23:55 +0900 Subject: [PATCH] Returned CONNECTION_DNS_CONFIG_TYPE_NONE when dns type is not set Change-Id: I88e1fda99a5029deb4b87b4f4cb4c58d3c0a8eaf Signed-off-by: Seonah Moon --- packaging/capi-network-connection.spec | 2 +- src/connection_profile.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index c05771a..001bb57 100755 --- a/packaging/capi-network-connection.spec +++ b/packaging/capi-network-connection.spec @@ -1,6 +1,6 @@ Name: capi-network-connection Summary: Network Connection library in TIZEN C API -Version: 1.0.98 +Version: 1.0.99 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/connection_profile.c b/src/connection_profile.c index f088a27..a44c912 100755 --- a/src/connection_profile.c +++ b/src/connection_profile.c @@ -1928,7 +1928,8 @@ EXPORT_API int connection_profile_get_dns_config_type(connection_profile_h profi *type = CONNECTION_DNS_CONFIG_TYPE_DYNAMIC; break; default: - return CONNECTION_ERROR_OPERATION_FAILED; + *type = CONNECTION_DNS_CONFIG_TYPE_NONE; + break; } return CONNECTION_ERROR_NONE; -- 2.7.4