sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}()