Skip to content

Commit

Permalink
Fix a null pointer dereference in MainServer::HandleQueryRecording().…
Browse files Browse the repository at this point in the history
… 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 9bddf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/mainserver.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 9bddf5b

Please sign in to comment.