diff options
author | schmirl <schmirl> | 2008-10-31 12:20:06 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2008-10-31 12:20:06 +0000 |
commit | 6c620ea7564265da06fc87819996f2cfdb4271be (patch) | |
tree | 5326f63b722b0a827c014828ec84e42ea8ea03cc | |
parent | 4d4f39f8cd96705793f0d247667a1af67d75c653 (diff) | |
download | vdr-plugin-streamdev-6c620ea7564265da06fc87819996f2cfdb4271be.tar.gz vdr-plugin-streamdev-6c620ea7564265da06fc87819996f2cfdb4271be.tar.bz2 |
- fixed null pointer in server.c when cConnection::Accept() failes
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | server/server.c | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -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) diff --git a/server/server.c b/server/server.c index 86c85b3..7cb0c60 100644 --- a/server/server.c +++ b/server/server.c @@ -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) { |