]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RIP: Replace the 'if (nd_printzp()) return' by nd_printjnp() call
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 10 Dec 2020 21:22:04 +0000 (22:22 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 10 Dec 2020 21:24:04 +0000 (22:24 +0100)
print-rip.c

index 4be0f2757cfc76197f5c53605d4ccbe0f9902655..fca534fb100b4c41a094f61567f78e53bce2ea36 100644 (file)
@@ -234,8 +234,7 @@ rip_entry_print_v2(netdissect_options *ndo, const u_char *p,
                remaining -= sizeof(*eh);
                if (auth_type == 2) {
                        ND_PRINT("\n\t  Simple Text Authentication data: ");
-                       if (nd_printzp(ndo, p, RIP_AUTHLEN, p + remaining))
-                               return (0);
+                       nd_printjnp(ndo, p, RIP_AUTHLEN);
                } else if (auth_type == 3) {
                        const struct rip_auth_crypto_v2 *ch;