diff --git a/fou_linux.go b/fou_linux.go index a303922..786f35d 100644 --- a/fou_linux.go +++ b/fou_linux.go @@ -163,7 +163,7 @@ func (h *Handle) FouList(fam int) ([]Fou, error) { req.AddRawData(raw) msgs, executeErr := req.Execute(unix.NETLINK_GENERIC, 0) - if executeErr != nil && !errors.Is(err, ErrDumpInterrupted) { + if executeErr != nil && !errors.Is(executeErr, ErrDumpInterrupted) { return nil, executeErr } diff --git a/gtp_linux.go b/gtp_linux.go index 377dcae..8b095fc 100644 --- a/gtp_linux.go +++ b/gtp_linux.go @@ -89,7 +89,7 @@ func (h *Handle) GTPPDPList() ([]*PDP, error) { req := h.newNetlinkRequest(int(f.ID), unix.NLM_F_DUMP) req.AddData(msg) msgs, executeErr := req.Execute(unix.NETLINK_GENERIC, 0) - if executeErr != nil && !errors.Is(err, ErrDumpInterrupted) { + if executeErr != nil && !errors.Is(executeErr, ErrDumpInterrupted) { return nil, executeErr } pdps, err := parsePDP(msgs)