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);