netlink: fix potential infinite loops
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 23 Sep 2019 20:06:00 +0000 (22:06 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 1 Oct 2019 20:31:14 +0000 (22:31 +0200)
commite76ad06d01d31fff4c482974138d2c4566e264cf
tree6529f958246a0da6e2538860831b68782ded833b
parent1d240094472c2a46096dc5a412ba4423a28b8ea3
netlink: fix potential infinite loops

Fix potential infinite loops by checking the return code of
nl_send_auto_complete; if nl_send_auto_complete fails pending
will always have the value 1 as the finish callback will not
be called resulting into an infinite loop

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/netlink.c