]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: network mode: fix a crash when oscam is restarted 587/head
authorMariusz Bialonczyk <manio@skyboo.net>
Thu, 22 Jan 2015 10:13:20 +0000 (11:13 +0100)
committerMariusz Bialonczyk <manio@skyboo.net>
Thu, 22 Jan 2015 10:22:06 +0000 (11:22 +0100)
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

index a6702e457c2e39ea056015c348c709704bc643f0..f7e7732801091059b324c6e1fc9b1a680debcb8d 100644 (file)
@@ -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