shl: hook: fix invalid memory access for non-oneshot entries
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 13 Jan 2013 18:30:35 +0000 (19:30 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 13 Jan 2013 18:30:35 +0000 (19:30 +0100)
commita67f02cf215a80ee97bfc23480f4c506cd9b8e7f
tree8a9e71b8a7ca3787e459877e68bd9426e5a01de6
parent6cae946505d4ce262e7787c15905d459e922b73b
shl: hook: fix invalid memory access for non-oneshot entries

If an entry is not a oneshot entry, then it might get deleted during the
callback procedure and hence, we _must_ not access it afterwards.
Therefore, remember the oneshot setting so we access it only if it really
is a oneshot entry.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/shl_hook.h