]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
Fixed crash on CAM remove
authorJasmin Jessich <jasmin@anw.at>
Wed, 1 Nov 2017 14:09:27 +0000 (15:09 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 1 Nov 2017 15:32:15 +0000 (16:32 +0100)
commitdae93224124e6c674513dc342bbcc211334c8086
tree09090e7621fe27390f8317d2ebd06fb5b307b9d2
parentbf6927c09c37308a556164028e737e8a7b709695
Fixed crash on CAM remove

When TVH is terminated with <cntrl-c> and there is a CAM opened,
dvbcam_unregister_cam is executed prior to dvbcam_service_destroy.
dvbcam_unregister_cam will remove "as->ac" so linuxdvb_ca_enqueue_capmt,
executed in dvbcam_service_destroy will crash.
This should also fix a possible crash (not tested), when removing the
CAM with an active stream.

Signed-off-by: Jasmin Jessich <jasmin@anw.at>
src/descrambler/dvbcam.c