Add wireguard related changes and test cases
[platform/core/api/vpn-setting.git] / src / vpn-internal.c
index dcfe898..2142917 100755 (executable)
@@ -360,7 +360,7 @@ int _vpn_get_vpn_handle(const char *name, const char *host, const char *domain,
        struct vpn_connection *connection = vpn_get_connection(name, host, domain);
 
        if (connection == NULL) {
-               VPN_LOG(VPN_ERROR, "name=%s host=%s domain=%s", name, host, domain);
+               VPN_LOG(VPN_ERROR, "name=%s host=%s domain=%s", name, host, domain ? domain : "NULL");
                return VPN_ERROR_INVALID_PARAMETER;
        }