]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/q_netem.c
tc/q_netem: Don't dereference possibly NULL pointer
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 09:46:32 +0000 (11:46 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 21:49:44 +0000 (14:49 -0700)
commita754de3ccd937500940c6fcd0ad043855f56862d
tree524c0d288b10a1f42ce66245a422736426b0b82b
parent6d02518fdc37eb12abff67b6f8c741fbd81dce72
tc/q_netem: Don't dereference possibly NULL pointer

Assuming 'opt' might be NULL, move the call to RTA_PAYLOAD to after the
check since it dereferences its parameter.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/q_netem.c