summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2013-09-12 14:52:34 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2013-09-12 16:07:26 +0900
commitb27142d48fad9a6f563c53e84a34c8104145cbb7 (patch)
tree73390268de8ca3fc364a99fdef8209bbb717ae04
parent9de74ca1aa31a54db28a2e210b3cce19ed4c45da (diff)
downloadconnection-tizen_2.2.tar.gz
connection-tizen_2.2.tar.bz2
connection-tizen_2.2.zip
If there are no DNS servers in a profile(internally, when the dns count is 0), user can not add new one manually.
-rw-r--r--packaging/capi-network-connection.spec2
-rwxr-xr-xsrc/connection_profile.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec
index 30fd976..5881c7e 100644
--- 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: 0.1.3_17
+Version: 0.1.3_18
Release: 1
Group: System/Network
License: Apache License Version 2.0
diff --git a/src/connection_profile.c b/src/connection_profile.c
index 92dbfc2..6d0bfe3 100755
--- a/src/connection_profile.c
+++ b/src/connection_profile.c
@@ -759,6 +759,9 @@ EXPORT_API int connection_profile_set_dns_address(connection_profile_h profile,
else if (inet_aton(dns_address, &(net_info->DnsAddr[order-1].Data.Ipv4)) == 0)
return CONNECTION_ERROR_INVALID_PARAMETER;
+ if (net_info->DnsCount < order)
+ net_info->DnsCount = order;
+
return CONNECTION_ERROR_NONE;
}