summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2012-05-24 18:51:26 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-05-24 18:52:14 (GMT)
commitcde2063c3ac640ff94c98a86f0cc20a8ab81321b (patch)
treebcc69998a26b241e1b819f2932906e06169ca2a5
parentfe9bd6d3af30bd1090ccd5b63273e6fa2050affd (diff)
Fix a null pointer dereference in MainServer::HandleQueryRecording(). This bug would have made it possible to crash a backend with a malformed QUERY_RECORDING message. Coverity defect 700420
(cherry picked from commit 9bddf5b26c5cf7e514e336de2ea4791031326cbe)
-rw-r--r--mythtv/programs/mythbackend/mainserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
index f249d7d..aaf0598 100644
--- a/mythtv/programs/mythbackend/mainserver.cpp
+++ b/mythtv/programs/mythbackend/mainserver.cpp
@@ -1681,7 +1681,7 @@ void MainServer::HandleQueryRecording(QStringList &slist, PlaybackSock *pbs)
QStringList strlist;
- if (pginfo->GetChanID())
+ if (pginfo && pginfo->GetChanID())
{
strlist << "OK";
pginfo->ToStringList(strlist);