diff options
Diffstat (limited to 'src/dnsproxy.c')
-rwxr-xr-x | src/dnsproxy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dnsproxy.c b/src/dnsproxy.c index b244a02e..178e98f7 100755 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -2177,8 +2177,15 @@ static int forward_dns_reply(unsigned char *reply, int reply_len, int protocol, req->resplen = 0; req->resp = g_try_malloc(reply_len); +#if defined TIZEN_EXT + if (!req->resp) { + g_free(new_reply); + return -ENOMEM; + } +#else if (!req->resp) return -ENOMEM; +#endif memcpy(req->resp, reply, reply_len); req->resplen = reply_len; |