]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd, zebra: fix struct/pointer sizeof mixups
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Mar 2015 07:54:54 +0000 (08:54 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Jun 2016 12:56:14 +0000 (08:56 -0400)
commitf2d193ab3282f3b54bd6fe855a0183d362c2746f
treef67d18033cf3333d368e2dd9567e41928b232cd3
parentc5e0075f8b0ed11c81333bbe6970ebc9479e3a70
bgpd, zebra: fix struct/pointer sizeof mixups

Two places were taking sizeof(pointer) instead of the sizeof(struct),
while performing operations on the struct.  Both are initialisation
functions;  I guess we haven't seen fallout since they weren't critical.
Fix anyway.

[v2: fix mistake that actually broke bgpd RS workqueue init]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit d43f8b39b075fe60e0c8fdb33b07b284d3fae503)