summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-10-16 15:35:05 +0000
committertedu <tedu@openbsd.org>2015-10-16 15:35:05 +0000
commitff180960043f78828917276b5732c81a23dce7f7 (patch)
tree8c0451df58b70e5c334ffb9a24f98a01d042b33a
parentRemove pointless externs - the structs are declared in the same files a (diff)
downloadwireguard-openbsd-ff180960043f78828917276b5732c81a23dce7f7.tar.xz
wireguard-openbsd-ff180960043f78828917276b5732c81a23dce7f7.zip
save request length in cache. naddy noticed we weren't getting any hits.
-rw-r--r--usr.sbin/rebound/rebound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index c8b155cac0c..ddba7053ac3 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.19 2015/10/16 02:09:31 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.20 2015/10/16 15:35:05 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -177,6 +177,7 @@ newrequest(int ud, struct sockaddr *remoteaddr)
hit->req = malloc(r);
if (hit->req) {
memcpy(hit->req, dnsreq, r);
+ hit->reqlen = r;
hit->req->id = 0;
} else {
free(hit);