aboutsummaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index 933ab699ab..c88193e15a 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -39,7 +39,7 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
/* First, check whether the requesting address matches our SOCKSPolicy. */
if ((addrlen = evdns_server_request_get_requesting_addr(req,
- (struct sockaddr*)&addr, sizeof(addr))) < 0) {
+ (struct sockaddr*)&addr, (socklen_t)sizeof(addr))) < 0) {
log_warn(LD_APP, "Couldn't get requesting address.");
evdns_server_request_respond(req, DNS_ERR_SERVERFAILED);
return;