Returned CONNECTION_DNS_CONFIG_TYPE_NONE when dns type is not set
[platform/core/api/connection.git] / src / connection_profile.c
index f088a27..a44c912 100755 (executable)
@@ -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;