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:51:26 (GMT)
commit9bddf5b26c5cf7e514e336de2ea4791031326cbe (patch)
tree86737747e58ecebd764d378212988d04ecf30c09
parent7533cf25dcc02c127ccb1b201d69d1d6d4ff5d9e (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
-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 3465c35..a691069 100644
--- a/mythtv/programs/mythbackend/mainserver.cpp
+++ b/mythtv/programs/mythbackend/mainserver.cpp
@@ -1810,7 +1810,7 @@ void MainServer::HandleQueryRecording(QStringList &slist, PlaybackSock *pbs)
QStringList strlist;
- if (pginfo->GetChanID())
+ if (pginfo && pginfo->GetChanID())
{
strlist << "OK";
pginfo->ToStringList(strlist);