[PATCH v2] pactl: Fix crash with older servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2014-03-19 at 09:18 +0200, Tanu Kaskinen wrote:
> 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 | 206 ++++++++++++++++++++++++++++++++++++------------------
>  1 file changed, 137 insertions(+), 69 deletions(-)

I pushed this now.

-- 
Tanu



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux