projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c439bb0
)
gweb: Check null before reference
author
Danny Jeongseok Seo
<s.seo@samsung.com>
Fri, 9 Nov 2012 05:44:12 +0000
(14:44 +0900)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Tue, 13 Nov 2012 12:36:43 +0000
(14:36 +0200)
gweb/gresolv.c
patch
|
blob
|
history
diff --git
a/gweb/gresolv.c
b/gweb/gresolv.c
index
d30e2f1
..
fbb7a54
100644
(file)
--- 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;