bgpd: Fix code path that leads to uninitialized variables

subtype and sublength are not initialized and if on Line 1877
BGP_ATTR_ENCAP != type we will not set subtype and sublength,
but these variables are used immediately below that if statement.

This issue was discovered via the freebsd compiler.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
1 file changed