siri/db: add NULL check before calling siridb_tasks_dec
authorNick Rosbrook <nick.rosbrook@canonical.com>
Thu, 25 Aug 2022 19:06:59 +0000 (21:06 +0200)
committerPaul Gevers <elbrus@debian.org>
Thu, 25 Aug 2022 19:06:59 +0000 (21:06 +0200)
commit8629caf47894022b7dc8f181b7cbf39f41bac818
tree305ec7f88687d0a38f4600b90f4a7eda374bcc8b
parent1f8789992e845ad358d02739d1103f3ccdee9f1b
siri/db: add NULL check before calling siridb_tasks_dec

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/siridb-server/+bug/1987558
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017748
Forwarded: https://github.com/SiriDB/siridb-server/pull/182
Last-Update: 2022-08-24

When built against libuv1 1.44.2, siridb_query_free may call
siridb_tasks_dec on NULL, causing a segfault. Add a NULL check on siridb
before calling siridb_tasks_dec to avoid this.
Last-Update: 2022-08-24
Gbp-Pq: Name 0002-siri-db-add-NULL-check-before-calling-siridb_tasks_d.patch
src/siri/db/query.c