artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf94ab
)
save request length in cache. naddy noticed we weren't getting any hits.
author
tedu
<tedu@openbsd.org>
Fri, 16 Oct 2015 15:35:05 +0000
(15:35 +0000)
committer
tedu
<tedu@openbsd.org>
Fri, 16 Oct 2015 15:35:05 +0000
(15:35 +0000)
usr.sbin/rebound/rebound.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rebound/rebound.c
b/usr.sbin/rebound/rebound.c
index
c8b155c
..
ddba705
100644
(file)
--- 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);