summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-01-07 15:33:13 +0100
committerMohsin Kazmi <sykazmi@cisco.com>2019-01-11 15:21:43 +0100
commit14fa5c2a896616d2830bbb227f7bc17e690d4d2c (patch)
tree856e79f7eec2106cc11047f75f8357272aa74f8a /src/plugins
parentf09179f91aea0ca0b427a5097c0932dc64589fe0 (diff)
gbp2: Fix typo in condition
Change-Id: I1b327309586c9234a22cda011953a1940d31e1ba Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gbp/gbp_classify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/gbp/gbp_classify.c b/src/plugins/gbp/gbp_classify.c
index 8850644078c..ba6fe9bee5c 100644
--- a/src/plugins/gbp/gbp_classify.c
+++ b/src/plugins/gbp/gbp_classify.c
@@ -383,6 +383,8 @@ gbp_lpm_classify_inline (vlib_main_t * vm,
to_next += 1;
n_left_from -= 1;
n_left_to_next -= 1;
+ ip4_0 = NULL;
+ ip6_0 = NULL;
next0 = GPB_LPM_CLASSIFY_DROP;
b0 = vlib_get_buffer (vm, bi0);
@@ -441,7 +443,7 @@ gbp_lpm_classify_inline (vlib_main_t * vm,
lbi0 = ip4_fib_forwarding_lookup (fib_index0,
&ip4_0->src_address);
}
- else if (DPO_PROTO_IP4 == dproto)
+ else if (DPO_PROTO_IP6 == dproto)
{
lbi0 = ip6_fib_table_fwding_lookup (&ip6_main, fib_index0,
&ip6_0->src_address);