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

This commit is contained in:
schmirl 2008-10-31 12:19:57 +00:00
parent 7184adef83
commit 459e41e810
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
VDR Plugin 'streamdev' Revision History VDR 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 - 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 is an optional feature for VDR devices, so we must not rely on the PMT
alone (pointed out by wirbel@vdrportal) alone (pointed out by wirbel@vdrportal)

View File

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