mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 03:53:53 +08:00
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:
parent
b5353b62c2
commit
3f975fe638
@ -896,7 +896,9 @@ nfs_printfh(netdissect_options *ndo,
|
||||
if (spacep)
|
||||
*spacep = '\0';
|
||||
|
||||
ND_PRINT(" fh %s/", temp);
|
||||
ND_PRINT(" fh ");
|
||||
fn_print_str(ndo, (const u_char *)temp);
|
||||
ND_PRINT("/");
|
||||
} else {
|
||||
ND_PRINT(" fh %u,%u/",
|
||||
fsid.Fsid_dev.Major, fsid.Fsid_dev.Minor);
|
||||
|
Loading…
Reference in New Issue
Block a user