mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
src/eitd/xmlutil.cpp fix possible segfault
This commit is contained in:
@@ -306,7 +306,10 @@ bool readEventsFromFile(std::string &epgname, int &ev_count)
|
||||
onid = xmlGetNumericAttribute(service, "original_network_id", 16);
|
||||
tsid = xmlGetNumericAttribute(service, "transport_stream_id", 16);
|
||||
sid = xmlGetNumericAttribute(service, "service_id", 16);
|
||||
|
||||
if(!onid || !tsid || !sid){
|
||||
service = xmlNextNode(service);
|
||||
continue;
|
||||
}
|
||||
event = xmlChildrenNode(service);
|
||||
|
||||
while (event) {
|
||||
|
Reference in New Issue
Block a user