From 519ec9677ef96c3db93a8127771fa84cb1719839 Mon Sep 17 00:00:00 2001 From: Mariusz Bialonczyk Date: Thu, 22 Jan 2015 11:13:20 +0100 Subject: [PATCH] capmt: network mode: fix a crash when oscam is restarted Use capmt_queue_msg() after connecting instead of direct write to socket. Fixes a crash when the channel is played and oscam is restarted. --- src/descrambler/capmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index a6702e45..f7e77328 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -797,7 +797,7 @@ capmt_send_client_info(capmt_t *capmt) int len = snprintf(buf + 7, sizeof(buf) - 7, "Tvheadend %s", tvheadend_version); buf[6] = len; - capmt_write_msg(capmt, 0, 0, (uint8_t *)&buf, len + 7); + capmt_queue_msg(capmt, 0, 0, (uint8_t *)&buf, len + 7, CAPMT_MSG_FAST); } static void