diff options
Diffstat (limited to 'pkg/server/fsm.go')
-rw-r--r-- | pkg/server/fsm.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go index fedf3018..a42ee910 100644 --- a/pkg/server/fsm.go +++ b/pkg/server/fsm.go @@ -873,7 +873,8 @@ func (h *fsmHandler) afiSafiDisable(rf bgp.RouteFamily) string { } func (h *fsmHandler) handlingError(m *bgp.BGPMessage, e error, useRevisedError bool) bgp.ErrorHandling { - handling := bgp.ERROR_HANDLING_NONE + // ineffectual assignment to handling (ineffassign) + var handling bgp.ErrorHandling if m.Header.Type == bgp.BGP_MSG_UPDATE && useRevisedError { factor := e.(*bgp.MessageError) handling = factor.ErrorHandling |