Multipath route is not installed due to gwData is newly allocated in block. (#159)

This commit is contained in:
Kunihiro Ishiguro 2016-08-23 15:58:51 -07:00 committed by Vish Ishaya
parent 49a7353739
commit d631d40de2

View File

@ -153,7 +153,7 @@ func (h *Handle) routeHandle(route *Route, req *nl.NetlinkRequest, msg *nl.RtMsg
} else {
gw = nl.NewRtAttr(syscall.RTA_GATEWAY, []byte(nh.Gw.To16()))
}
gwData := gw.Serialize()
gwData = gw.Serialize()
rtnh.Len += uint16(len(gwData))
}
buf = append(buf, rtnh.Serialize()...)