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

(cherry picked from commit 9bddf5b)
  • Loading branch information
stuartm committed May 24, 2012
1 parent fe9bd6d commit cde2063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/mainserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cde2063

Please sign in to comment.