NFS: Avoid printing non-ASCII characters

The "%s" format is a risk (no non-ASCII filtering), thus use
the fn_print_str() function.
This commit is contained in:
Francois-Xavier Le Bail 2023-11-01 16:52:21 +01:00
parent 6bd40df6fe
commit b5353b62c2

View File

@ -904,7 +904,7 @@ nfs_printfh(netdissect_options *ndo,
if(fsid.Fsid_dev.Minor == 257)
/* Print the undecoded handle */
ND_PRINT("%s", fsid.Opaque_Handle);
fn_print_str(ndo, (const u_char *)fsid.Opaque_Handle);
else
ND_PRINT("%u", ino);
}