summaryrefslogtreecommitdiff
path: root/tstamping.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-10-20 15:10:41 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-10-20 15:10:41 +0200
commit9addb47bec772b53a66c39efdd404290300d0e86 (patch)
tree71f86f9157a8b265f1e0db483aabda571fca2465 /tstamping.c
parentabafb7e1679f268fea1f5b0f911cb75fcda44857 (diff)
trafgen: fix NULL pointer dereference in -i option parsing
If trafgen is called with the -i option, it currently crashes due to an NULL pointer dereference. Fix it. Fixes Coverity CID 1381809 Fixes: 82a3c204c6f1 ("trafgen: Allow send packets from pcap file") Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'tstamping.c')
0 files changed, 0 insertions, 0 deletions
ng to use this ioctl to dump and restore unix socket. Here is an example how it can be used: $ strace -e socket,bind,ioctl ./test /tmp/test_sock socket(AF_UNIX, SOCK_STREAM, 0) = 3 bind(3, {sa_family=AF_UNIX, sun_path="test_sock"}, 11) = 0 ioctl(3, SIOCUNIXFILE, 0) = 4 ^Z $ ss -a | grep test_sock u_str LISTEN 0 1 test_sock 17798 * 0 $ ls -l /proc/760/fd/{3,4} lrwx------ 1 root root 64 Feb 1 09:41 3 -> 'socket:[17798]' l--------- 1 root root 64 Feb 1 09:41 4 -> /tmp/test_sock $ cat /proc/760/fdinfo/4 pos: 0 flags: 012000000 mnt_id: 40 $ cat /proc/self/mountinfo | grep "^40\s" 40 19 0:37 / /tmp rw shared:23 - tmpfs tmpfs rw Signed-off-by: Andrei Vagin <avagin@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/un.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/un.h b/include/uapi/linux/un.h