Fix: sessiond ht_match_event() check if filter is NULL
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 15 Jun 2016 21:18:03 +0000 (17:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Jun 2016 19:47:15 +0000 (15:47 -0400)
commit7fa9b5bbad0137e2152474a09ffc5f68bda792a1
treead98b188d4204d8ac6f4be248af6bfa363270dda
parent4099983eddc96a9f1f5900e5f98091f36abc67da
Fix: sessiond ht_match_event() check if filter is NULL

It looks like an agent event's filter expression is NULL when
it's created with -a, for example:

    lttng enable-event -j -a

Since there's no check for this in ht_match_event(), strlen()
makes the session daemon segfault with this scenario:

    lttng create
    lttng enable-event -j -a
    lttng disable-event -j -a

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/agent.c
This page took 0.026001 seconds and 4 git commands to generate.