summaryrefslogtreecommitdiff
path: root/print-domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-domain.c')
-rw-r--r--print-domain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/print-domain.c b/print-domain.c
index 74c71dba..c3c6fd8f 100644
--- a/print-domain.c
+++ b/print-domain.c
@@ -796,10 +796,8 @@ ns_rprint(netdissect_options *ndo,
ND_PRINT(" %u(bad plen)", pbit);
break;
} else if (pbit < 128) {
- if (!ND_TTEST_LEN(cp + 1, sizeof(a) - pbyte))
- return(NULL);
memset(a, 0, sizeof(a));
- memcpy(a + pbyte, cp + 1, sizeof(a) - pbyte);
+ GET_CPY_BYTES(a + pbyte, cp + 1, sizeof(a) - pbyte);
ND_PRINT(" %u %s", pbit,
addrtostr6(&a, ntop_buf, sizeof(ntop_buf)));
}