]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Reorder assignment and assertion.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Dec 2017 01:33:44 +0000 (20:33 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Dec 2017 02:28:19 +0000 (21:28 -0500)
commit2ad7c8ecb732c6a22b8a950ac27be28b3f51c720
tree3a37274d91109347de876ab967fb641be44c1007
parentedb1d4a09acdf27c04ce27adf1b06e4faa86454a
bgpd: Reorder assignment and assertion.

If we ever turn off assertion for production builds
this code as written will cause a crash in that
the assignment will not happen.

Modify the code such that this erroneous assumption
cannot happen.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/rfapi/vnc_import_bgp.c