diff options
author | 2010-04-16 12:24:25 +0000 | |
---|---|---|
committer | 2010-04-16 12:24:25 +0000 | |
commit | 6ba9f30334620b19a56697162b08143277cb563b (patch) | |
tree | e55a78fc846cde0e35861d98f19fc6b75b6bba54 | |
parent | byteswap the number of blocks on physical disks for bioctl correctly. (diff) | |
download | wireguard-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.c | 3 |
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); |