Skip to content

Commit b5353b6

Browse files
committed
NFS: Avoid printing non-ASCII characters
The "%s" format is a risk (no non-ASCII filtering), thus use the fn_print_str() function.
1 parent 6bd40df commit b5353b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

print-nfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ nfs_printfh(netdissect_options *ndo,
904904

905905
if(fsid.Fsid_dev.Minor == 257)
906906
/* Print the undecoded handle */
907-
ND_PRINT("%s", fsid.Opaque_Handle);
907+
fn_print_str(ndo, (const u_char *)fsid.Opaque_Handle);
908908
else
909909
ND_PRINT("%u", ino);
910910
}

0 commit comments

Comments
 (0)