Fix: trigger: erroneous check for success of trigger creation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Nov 2020 22:12:45 +0000 (17:12 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Nov 2020 22:14:41 +0000 (17:14 -0500)
commitf5d98ed9e6017de4d7146fd4a19dad4dab5471e3
tree0ca14ea1f9d0e37df7cbcd3ee835612d000ef7b6
parent6808ef55e595f2cb28e8c0dafe5dff3e0faaa742
Fix: trigger: erroneous check for success of trigger creation

6808ef55e added a check for `ret == 0` to determine if a trigger
could be created from a payload. The function returns >= 0 on
success, leading to crashes when a trigger is de-serialized.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Icd769dcb04f7637aa1877436e9a5570e7f20b63b
src/common/trigger.c
This page took 0.026878 seconds and 4 git commands to generate.