]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: Fix error checking in init_default_filters(). maint
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 17 May 2023 20:13:55 +0000 (22:13 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 30 May 2023 20:27:51 +0000 (22:27 +0200)
commit068b2514407313f3a9291acdd265d94b26359d55
treef758a9e6251b836992b086fdf3f3a067a9cf92ee
parentac2b74b691bd19544660df8b69f89cd6f5323735
audiod: Fix error checking in init_default_filters().

We ignore the return value of add_filter() instead of assigning it to
ret as usual, then test ret anyway. That's clearly bogus, even more
so since with the old code ret can never be negative at this point, so
the subsequent condition for the subsequent jump to out: is never true.

This bug was introduced 13 years ago.

Fixes: 081ea8699e6a309c44446884b8c3752529d96a25
audiod.c