projects
/
platform
/
core
/
api
/
connection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix issue with DNS setting
[platform/core/api/connection.git]
/
src
/
connection_profile.c
diff --git
a/src/connection_profile.c
b/src/connection_profile.c
index
92dbfc2
..
6d0bfe3
100644
(file)
--- 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;
}