diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-25 16:38:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-25 16:38:50 -0400 |
commit | 99c315a473bdeb25680d07f7aaca089a6c1f8ecb (patch) | |
tree | 44e5a86823ed327d190d1d0c80810eec93e692f2 /src/or/eventdns.c | |
parent | f334297d388f7a1167c34b3f50bc0513f5c7cfac (diff) | |
download | tor-99c315a473bdeb25680d07f7aaca089a6c1f8ecb.tar.gz tor-99c315a473bdeb25680d07f7aaca089a6c1f8ecb.zip |
Use tor_socket_strerror in eventdns.c. Fixes bug 987.
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index cd1330314b..4464148141 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -1299,7 +1299,7 @@ nameserver_read(struct nameserver *ns) { if (r < 0) { int err = last_error(ns->socket); if (error_is_eagain(err)) return; - nameserver_failed(ns, strerror(err)); + nameserver_failed(ns, tor_socket_strerror(err)); return; } /* XXX Match port too? */ @@ -1331,7 +1331,7 @@ server_port_read(struct evdns_server_port *s) { int err = last_error(s->socket); if (error_is_eagain(err)) return; log(EVDNS_LOG_WARN, "Error %s (%d) while reading request.", - strerror(err), err); + tor_socket_strerror(err), err); return; } request_parse(packet, r, s, (struct sockaddr*) &addr, addrlen); @@ -1350,7 +1350,7 @@ server_port_flush(struct evdns_server_port *port) int err = last_error(port->socket); if (error_is_eagain(err)) return; - log(EVDNS_LOG_WARN, "Error %s (%d) while writing response to port; dropping", strerror(err), err); + log(EVDNS_LOG_WARN, "Error %s (%d) while writing response to port; dropping", tor_socket_strerror(err), err); } if (server_request_free(req)) { /* we released the last reference to req->port. */ @@ -2063,7 +2063,7 @@ evdns_request_transmit_to(struct evdns_request *req, struct nameserver *server) if (r < 0) { int err = last_error(server->socket); if (error_is_eagain(err)) return 1; - nameserver_failed(req->ns, strerror(err)); + nameserver_failed(req->ns, tor_socket_strerror(err)); return 2; } else if (r != (ssize_t)req->request_len) { return 1; /* short write */ |