mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
sectionsd.cpp: fix possible segfault
This commit is contained in:
@@ -1164,7 +1164,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
|
|||||||
static void commandWriteSI2XML(int connfd, char *data, const unsigned dataLength)
|
static void commandWriteSI2XML(int connfd, char *data, const unsigned dataLength)
|
||||||
{
|
{
|
||||||
sendEmptyResponse(connfd, NULL, 0);
|
sendEmptyResponse(connfd, NULL, 0);
|
||||||
if ((!reader_ready) || (dataLength > 100)){
|
if (mySIeventsOrderUniqueKey.empty() || (!reader_ready) || (dataLength > 100)){
|
||||||
eventServer->sendEvent(CSectionsdClient::EVT_WRITE_SI_FINISHED, CEventServer::INITID_SECTIONSD);
|
eventServer->sendEvent(CSectionsdClient::EVT_WRITE_SI_FINISHED, CEventServer::INITID_SECTIONSD);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user