mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 10:04:05 +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
6bd40df6fe
commit
b5353b62c2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user