]> code.delx.au - pulseaudio/commit
pactl: Fix crash with older servers
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 19 Mar 2014 07:18:06 +0000 (09:18 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 28 Mar 2014 12:49:07 +0000 (14:49 +0200)
commite1440395d18310fe7648011737c579520c55d549
tree4bd8d4c090ead59814f8fd4987acd010c4a97116
parente0e6bf687573ea8ee3b6b53f8e44bcb30f4914ec
pactl: Fix crash with older servers

Servers older than 0.9.15 don't know anything about cards, and card
operations will return a NULL pa_operation object when connected to
that old server. We must check the pa_operation pointer before passing
it to pa_operation_unref(), otherwise a NULL operation will result in
a crash.
src/utils/pactl.c