artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef28c6
)
make sure req is zeroed in tcp case
author
tedu
<tedu@openbsd.org>
Thu, 15 Oct 2015 22:17:43 +0000
(22:17 +0000)
committer
tedu
<tedu@openbsd.org>
Thu, 15 Oct 2015 22:17:43 +0000
(22:17 +0000)
usr.sbin/rebound/rebound.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rebound/rebound.c
b/usr.sbin/rebound/rebound.c
index
a6ee07e
..
04fdf96
100644
(file)
--- a/
usr.sbin/rebound/rebound.c
+++ b/
usr.sbin/rebound/rebound.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rebound.c,v 1.1
2 2015/10/15 22:12:26
tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.1
3 2015/10/15 22:17:43
tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@
-264,7
+264,7
@@
newtcprequest(int ld, struct sockaddr *remoteaddr)
{
struct request *req;
- if (!(req =
malloc(
sizeof(*req))))
+ if (!(req =
calloc(1,
sizeof(*req))))
return NULL;
req->s = -1;