- fixed null pointer in server.c when cConnection::Accept() failes

This commit is contained in:
schmirl 2008-10-31 12:20:06 +00:00
parent 4d4f39f8cd
commit 6c620ea756
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
eDR Plugin 'streamdev' Revision History
---------------------------------------
- fixed null pointer in server.c when cConnection::Accept() failes
- consider Pids from channels.conf when HTTP TS streaming. Section filtering
is an optional feature for VDR devices, so we must not rely on the PMT
alone (pointed out by wirbel@vdrportal)

View File

@ -1,5 +1,5 @@
/*
* $Id: server.c,v 1.5.2.3 2008/10/22 11:59:37 schmirl Exp $
* $Id: server.c,v 1.5.2.4 2008/10/31 12:20:06 schmirl Exp $
*/
#include "server/server.h"
@ -116,6 +116,8 @@ void cStreamdevServer::Action(void)
for (cServerComponent *c = m_Servers.First(); c; c = m_Servers.Next(c)){
if (sel && select.CanRead(c->Socket())) {
cServerConnection *client = c->Accept();
if (!client)
continue;
m_Clients.Add(client);
if (m_Clients.Count() > StreamdevServerSetup.MaxClients) {