From da59dd38971e374c117d0a11cc65141db9abb4e8 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Sun, 31 Jul 2016 10:20:07 +0200 Subject: [PATCH] do source-filtering in cSatipServer::Assign() --- server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.c b/server.c index 1e89fd9..90d6db1 100644 --- a/server.c +++ b/server.c @@ -206,6 +206,9 @@ int cSatipServer::Compare(const cListObject &listObjectP) const bool cSatipServer::Assign(int deviceIdP, int sourceP, int systemP, int transponderP) { + if (!IsValidSource(sourceP)) + return false; + bool result = false; if (cSource::IsType(sourceP, 'S')) result = frontendsM[eSatipFrontendDVBS2].Assign(deviceIdP, transponderP);