Fix: sessiond: ust-registry: dereference of NULL pointer on allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Feb 2021 19:20:34 +0000 (14:20 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Feb 2021 19:38:09 +0000 (14:38 -0500)
commit70987ead6fdcd00aa3365e3b4d2a6ffd5efd511f
tree90d9c550cdc4c7987e36b7d07bec9280d71ff229
parentb5e3b044d898fe910f93d3ffd737c55d4b34e4ab
Fix: sessiond: ust-registry: dereference of NULL pointer on allocation failure

Coverity reports:
1445771 Dereference after null check
Either the check against null is unnecessary, or there may be a null pointer dereference.
In ust_registry_channel_add: Pointer is checked against null but then dereferenced anyway (CWE-476)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I3976e0d7b059b47ca233bc9a20585eff2e1290fc
src/bin/lttng-sessiond/ust-registry.c
This page took 0.033037 seconds and 4 git commands to generate.