summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-04-16 12:24:25 +0000
committerclaudio <claudio@openbsd.org>2010-04-16 12:24:25 +0000
commit6ba9f30334620b19a56697162b08143277cb563b (patch)
treee55a78fc846cde0e35861d98f19fc6b75b6bba54
parentbyteswap the number of blocks on physical disks for bioctl correctly. (diff)
downloadwireguard-openbsd-6ba9f30334620b19a56697162b08143277cb563b.tar.xz
wireguard-openbsd-6ba9f30334620b19a56697162b08143277cb563b.zip
Memory allocated with calloc() is initialized to zero, no need to do that
explicitly.
-rw-r--r--usr.sbin/bgpd/session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 10f09c9f444..c6222e07cf6 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.306 2010/04/13 09:09:48 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.307 2010/04/16 12:24:25 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -629,7 +629,6 @@ bgp_fsm(struct peer *peer, enum session_events event)
peer->rbuf = calloc(1, sizeof(struct buf_read));
if (peer->rbuf == NULL)
fatal(NULL);
- peer->rbuf->wpos = 0;
/* init write buffer */
msgbuf_init(&peer->wbuf);