summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorDanny Jeongseok Seo <s.seo@samsung.com>2012-11-09 14:44:12 +0900
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-13 14:36:43 +0200
commit00168951f9d122b396a49166b40dff9c90fcdedd (patch)
treea52295bd49b1d19fd9180056355bdeaee9b508fb /gweb
parentc439bb03072c39ebecf38b08c5925757ab36c36d (diff)
downloadconnman-00168951f9d122b396a49166b40dff9c90fcdedd.tar.gz
connman-00168951f9d122b396a49166b40dff9c90fcdedd.tar.bz2
connman-00168951f9d122b396a49166b40dff9c90fcdedd.zip
gweb: Check null before reference
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gresolv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index d30e2f16..fbb7a54b 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -1003,11 +1003,11 @@ guint g_resolv_lookup_hostname(GResolv *resolv, const char *hostname,
{
struct resolv_lookup *lookup;
- debug(resolv, "hostname %s", hostname);
-
if (resolv == NULL)
return 0;
+ debug(resolv, "hostname %s", hostname);
+
if (resolv->nameserver_list == NULL) {
int i;