aboutsummaryrefslogtreecommitdiff
path: root/src/gns/nss/nss_gns_query.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-03-03 22:41:59 +0100
committerChristian Grothoff <christian@grothoff.org>2018-03-03 22:41:59 +0100
commitbee1fc336bad21e456907eb9e6c35dc195b9a7e9 (patch)
tree00d3455808441b97a9a9a17befac8aaff0534b3a /src/gns/nss/nss_gns_query.c
parent92f24c2f42e84489160d7c8b94eeae9ec98207ed (diff)
downloadgnunet-bee1fc336bad21e456907eb9e6c35dc195b9a7e9.tar.gz
gnunet-bee1fc336bad21e456907eb9e6c35dc195b9a7e9.zip
update NSS plugin to hijack non-gnu/zkey tlds as well
Diffstat (limited to 'src/gns/nss/nss_gns_query.c')
-rw-r--r--src/gns/nss/nss_gns_query.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/nss/nss_gns_query.c b/src/gns/nss/nss_gns_query.c
index 273eaa619..4700100b5 100644
--- a/src/gns/nss/nss_gns_query.c
+++ b/src/gns/nss/nss_gns_query.c
@@ -44,6 +44,7 @@ gns_resolve_name (int af,
44 FILE *p; 44 FILE *p;
45 char *cmd; 45 char *cmd;
46 char line[128]; 46 char line[128];
47 int ret;
47 48
48 if (AF_INET6 == af) 49 if (AF_INET6 == af)
49 { 50 {
@@ -101,8 +102,12 @@ gns_resolve_name (int af,
101 } 102 }
102 } 103 }
103 } 104 }
104 pclose (p); 105 ret = pclose (p);
105 free (cmd); 106 free (cmd);
107 if (4 == ret)
108 return -2; /* not for GNS */
109 if (3 == ret)
110 return -3; /* timeout */
106 return 0; 111 return 0;
107} 112}
108/* end of nss_gns_query.c */ 113/* end of nss_gns_query.c */