summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_msg_read.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-16 22:28:41 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-16 22:28:41 +0100
commit075b751cfe1ae87c416eceb68e01b5f8b9a9e92b (patch)
tree1d6089008cab2d37422e5859c5e8c04faf1ba23e /bgpd/bgp_msg_read.c
parent62ecf51e3c652c65c84bb94d794f2533cee1fb9c (diff)
downloadquagga-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.c12
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 */