]> granicus.if.org Git - strace/commit
nlattr: specify size for ethernet protocol
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 10 Jun 2018 10:43:33 +0000 (12:43 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Jun 2018 14:02:06 +0000 (14:02 +0000)
commitdeeb2d42ae2a943fd01f8cf589aa049f37ca40ea
tree5b5aba351282427585defe8d61eabc26029ce00d
parenta781b2659f481c1b44384235e936133f1658a491
nlattr: specify size for ethernet protocol

Otherwise it tries to decode payload of size 1, which makes little
sense.

* nlattr.c (decode_nla_ether_proto) <opts>: Specify size field.

Fixes: v4.22-321-gfd0cd65 "nlattr: add ethernet protocol decoder"
nlattr.c