From dd1a15a8fcd0567f15c73be325d5863bc16d17ca Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 16 Apr 2010 12:24:26 +0000 Subject: Memory allocated with calloc() is initialized to zero, no need to do that explicitly. --- usr.sbin/bgpd/session.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/bgpd') 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 @@ -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); -- cgit v1.2.3