diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-16 22:28:41 +0100 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-16 22:28:41 +0100 |
commit | 075b751cfe1ae87c416eceb68e01b5f8b9a9e92b (patch) | |
tree | 1d6089008cab2d37422e5859c5e8c04faf1ba23e /bgpd/bgp_msg_read.c | |
parent | 62ecf51e3c652c65c84bb94d794f2533cee1fb9c (diff) | |
download | quagga-075b751cfe1ae87c416eceb68e01b5f8b9a9e92b.tar.bz2 quagga-075b751cfe1ae87c416eceb68e01b5f8b9a9e92b.tar.xz |
Further reduction of warnings under gcc 4.2.1
Diffstat (limited to 'bgpd/bgp_msg_read.c')
-rw-r--r-- | bgpd/bgp_msg_read.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bgpd/bgp_msg_read.c b/bgpd/bgp_msg_read.c index e8a2897e..7e55bf70 100644 --- a/bgpd/bgp_msg_read.c +++ b/bgpd/bgp_msg_read.c @@ -617,7 +617,12 @@ bgp_msg_open_option_parse (bgp_connection connection, bgp_notify notification, opt_type = suck_b(sr); opt_length = suck_b(sr); left -= opt_length ; - } ; + } + else + { + opt_type = 0 ; /* ensure initialised */ + opt_length = 0 ; + } /* Must not have exceeded available bytes */ if (left < 0) @@ -1569,6 +1574,11 @@ bgp_msg_orf_recv(bgp_connection connection, bgp_route_refresh rr, { orf_type = suck_b(sr) ; orf_len = suck_w(sr) ; + } + else + { + orf_type = 0 ; /* ensure initialised */ + orf_len = 0 ; } ; /* The length may not be zero and may not exceed what there is left */ |