summaryrefslogtreecommitdiff
path: root/print-nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-nfs.c')
-rw-r--r--print-nfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-nfs.c b/print-nfs.c
index 45b42787..4d657c01 100644
--- a/print-nfs.c
+++ b/print-nfs.c
@@ -480,9 +480,9 @@ parsefn(netdissect_options *ndo,
/* Bail if we don't have the string length */
ND_TCHECK(*dp);
- /* Fetch string length; convert to host order */
- len = *dp++;
- NTOHL(len);
+ /* Fetch big-endian string length */
+ len = EXTRACT_BE_U_4(dp);
+ dp++;
ND_TCHECK_LEN(dp, ((len + 3) & ~3));