diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-10-16 15:35:06 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-10-16 15:35:06 +0000 |
commit | c96df25a45b2369710967d49ce87740b88f1ec45 (patch) | |
tree | bb4599fc505343b4ba3d2b21a7ed0f14a227c03b /usr.sbin | |
parent | 15a07892d113b1682dd8221e5ea95647c34ae248 (diff) |
save request length in cache. naddy noticed we weren't getting any hits.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rebound/rebound.c | 3 |
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); |