summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-04-16 12:24:26 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-04-16 12:24:26 +0000
commitdd1a15a8fcd0567f15c73be325d5863bc16d17ca (patch)
treeb2c54b945d58cf25292bd9e5e4746e5c69a61705 /usr.sbin/bgpd
parent656ec949ef35f405821763e253ac9fc5dadc2a13 (diff)
Memory allocated with calloc() is initialized to zero, no need to do that
explicitly.
Diffstat (limited to 'usr.sbin/bgpd')
-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);