X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=vpn%2Fplugins%2Fopenvpn.c;h=ef0bf7824c2941cf1d21fd54d314b9e0308f94a7;hb=fd0692ba60b03da85aa02aa5eb642600013f7c7b;hp=9e8ccebfb66e03c07aa0c7e6cb410551d823d7cf;hpb=713f1f6ae0d7dd1c702f20e96d43220e2c86c998;p=platform%2Fupstream%2Fconnman.git diff --git a/vpn/plugins/openvpn.c b/vpn/plugins/openvpn.c index 9e8cceb..ef0bf78 100755 --- a/vpn/plugins/openvpn.c +++ b/vpn/plugins/openvpn.c @@ -152,8 +152,15 @@ static struct nameserver_entry *ov_append_dns_entries(const char *key, options[2]) { entry = g_try_new(struct nameserver_entry, 1); +#if defined TIZEN_EXT + if (!entry) { + g_strfreev(options); + return NULL; + } +#else if (!entry) return NULL; +#endif entry->nameserver = g_strdup(options[2]); entry->id = atoi(key + 15); /* foreign_option_XXX */