Opened 11 years ago

Closed 11 years ago

#5428 closed defect (fixed)

socket pointer should be checked before using in MainServer::SendResponse

Reported by: Erik Hovland <erik@…> Owned by: Isaac Richards
Priority: trivial Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

It is unlikely but possible that the pointer variable socket might be invalid. It should be checked before being dereferenced.

Attachments (1)

programs_mythbackend_mainserver.cpp-check-socket-pointer-before-dereference.patch (787 bytes) - added by Erik Hovland <erik@…> 11 years ago.
checks validity of socket pointer before dereferencing it

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Erik Hovland <erik@…>

checks validity of socket pointer before dereferencing it

comment:1 Changed 11 years ago by danielk

Resolution: fixed
Status: newclosed

(In [17633]) Fixes #5428. Adds null pointer check.

Note: See TracTickets for help on using tickets.