summaryrefslogtreecommitdiff
path: root/proto/bgp
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-01-09 02:40:57 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2012-01-09 02:41:13 +0100
commitd7f469c15c1fd8315061f85b87a19946c3ea4700 (patch)
tree6569c62ceea73f88d436e25c4854ea9bae2c2938 /proto/bgp
parent3f58437405f8e37e9c14d83274a6b82ffd9583f8 (diff)
Some minor fixes.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index bbb0865f..998abb7b 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -831,7 +831,7 @@ bgp_set_next_hop(struct bgp_proto *p, rta *a)
if (p->cf->gw_mode == GW_DIRECT)
{
- neighbor *ng;
+ neighbor *ng = NULL;
if (ipa_nonzero(*nexthop))
ng = neigh_find(&p->p, nexthop, 0);