diff options
Diffstat (limited to 'src/dns')
-rw-r--r-- | src/dns/dns.conf.in | 2 | ||||
-rw-r--r-- | src/dns/dnsstub.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/dns/dns.conf.in b/src/dns/dns.conf.in index 7944b410a..a1282b3ed 100644 --- a/src/dns/dns.conf.in +++ b/src/dns/dns.conf.in | |||
@@ -3,7 +3,7 @@ AUTOSTART = YES | |||
3 | HOSTNAME = localhost | 3 | HOSTNAME = localhost |
4 | HOME = $SERVICEHOME | 4 | HOME = $SERVICEHOME |
5 | BINARY = gnunet-service-dns | 5 | BINARY = gnunet-service-dns |
6 | UNIXPATH = /tmp/gnunet-service-dns.sock | 6 | UNIXPATH = $SERVICEHOME/gnunet-service-dns.sock |
7 | 7 | ||
8 | # Access to this service can compromise all DNS queries in this | 8 | # Access to this service can compromise all DNS queries in this |
9 | # system. Thus access should be restricted to the same UID. | 9 | # system. Thus access should be restricted to the same UID. |
diff --git a/src/dns/dnsstub.c b/src/dns/dnsstub.c index 0e130a77f..caf90f3d2 100644 --- a/src/dns/dnsstub.c +++ b/src/dns/dnsstub.c | |||
@@ -167,11 +167,11 @@ open_socket (int af) | |||
167 | return NULL; | 167 | return NULL; |
168 | } | 168 | } |
169 | sa->sa_family = af; | 169 | sa->sa_family = af; |
170 | if (GNUNET_OK != GNUNET_NETWORK_socket_bind (ret, | 170 | if (GNUNET_OK != |
171 | sa, | 171 | GNUNET_NETWORK_socket_bind (ret, |
172 | alen, | 172 | sa, |
173 | 0)) | 173 | alen)) |
174 | { | 174 | { |
175 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 175 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
176 | _("Could not bind to any port: %s\n"), | 176 | _("Could not bind to any port: %s\n"), |
177 | STRERROR (errno)); | 177 | STRERROR (errno)); |