From c3db1c47828628413a65786efabe46cffa366c7c Mon Sep 17 00:00:00 2001
From: Jonas Johansson <jonasj76@gmail.com>
Date: Mon, 12 Mar 2018 13:51:36 +0100
Subject: [PATCH 28/76] route/vrf: initalize clone destination with NULL in
 vrf_clone()

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
---
 lib/route/link/vrf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/route/link/vrf.c b/lib/route/link/vrf.c
index 84d2d8b..8b6b451 100644
--- a/lib/route/link/vrf.c
+++ b/lib/route/link/vrf.c
@@ -107,6 +107,7 @@ static int vrf_clone(struct rtnl_link *dst, struct rtnl_link *src)
 	struct vrf_info *vdst, *vsrc = src->l_info;
 	int err;
 
+	dst->l_info = NULL;
 	if ((err = rtnl_link_set_type(dst, "vrf")) < 0)
 		return err;
 	vdst = dst->l_info;
-- 
1.8.3.1

