sectionsd.cpp: fix possible segfault

Origin commit data
------------------
Branch: ni/coolstream
Commit: 434ac74066
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-08-08 (Wed, 08 Aug 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-08-08 22:05:33 +02:00
parent 6ebba8d227
commit 34c7a60d9c

View File

@@ -1164,7 +1164,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
static void commandWriteSI2XML(int connfd, char *data, const unsigned dataLength)
{
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);
return;
}