summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-12-10 22:22:04 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-12-10 22:24:04 +0100
commitd9893474ee1284e8772474c26ba0830657d4f33d (patch)
tree065158ff1802af86ac929a38da4690f2002c0d2b
parent42c0601fcf03834b848e2455c8a041cb60b7af9a (diff)
downloadtcpdump-d9893474ee1284e8772474c26ba0830657d4f33d.tar.gz
RIP: Replace the 'if (nd_printzp()) return' by nd_printjnp() call
-rw-r--r--print-rip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/print-rip.c b/print-rip.c
index 4be0f275..fca534fb 100644
--- a/print-rip.c
+++ b/print-rip.c
@@ -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;