projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6df327
)
Report error if lookup fails
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 1 Aug 2010 23:35:05 +0000
(16:35 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 1 Aug 2010 23:35:05 +0000
(16:35 -0700)
tools/resolv-test.c
patch
|
blob
|
history
diff --git
a/tools/resolv-test.c
b/tools/resolv-test.c
index
30a6554
..
05c3a56
100644
(file)
--- a/
tools/resolv-test.c
+++ b/
tools/resolv-test.c
@@
-144,7
+144,11
@@
int main(int argc, char *argv[])
timer = g_timer_new();
- g_resolv_lookup_hostname(resolv, argv[1], resolv_result, NULL);
+ if (g_resolv_lookup_hostname(resolv, argv[1],
+ resolv_result, NULL) == 0) {
+ printf("failed to start lookup\n");
+ return 1;
+ }
memset(&sa, 0, sizeof(sa));
sa.sa_handler = sig_term;