examples/l3fwd-acl: check fseek return
authorKuba Kozak <kubax.kozak@intel.com>
Tue, 3 Oct 2017 11:48:02 +0000 (13:48 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Oct 2017 22:38:35 +0000 (00:38 +0200)
commitab9cfe43c28efb3576396e7133af64b25b8785f3
tree2e030d45000a659f2b2620ad35a123797fa0a49f
parent9b85b871cc52d1219f5a68131059e539f7ee9916
examples/l3fwd-acl: check fseek return

Add return value check and error handling for fseek call.

Coverity issue: 143435
Fixes: 361b2e9559fc ("acl: new sample l3fwd-acl")

Signed-off-by: Kuba Kozak <kubax.kozak@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Zhiyong Yang <zhiyong.yang@intel.com>
examples/l3fwd-acl/main.c