Permalink
Browse files

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
  • Loading branch information...
stuartm committed May 24, 2012
1 parent 7533cf2 commit 9bddf5b26c5cf7e514e336de2ea4791031326cbe
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 9bddf5b

Please sign in to comment.