diff options
author | Danny Jeongseok Seo <s.seo@samsung.com> | 2012-11-09 14:44:12 +0900 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-13 14:36:43 +0200 |
commit | 00168951f9d122b396a49166b40dff9c90fcdedd (patch) | |
tree | a52295bd49b1d19fd9180056355bdeaee9b508fb /gweb | |
parent | c439bb03072c39ebecf38b08c5925757ab36c36d (diff) | |
download | connman-00168951f9d122b396a49166b40dff9c90fcdedd.tar.gz connman-00168951f9d122b396a49166b40dff9c90fcdedd.tar.bz2 connman-00168951f9d122b396a49166b40dff9c90fcdedd.zip |
gweb: Check null before reference
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/gresolv.c | 4 |
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; |