cec: fixed possible crash when trying to request a vendor id of a device when the...
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index ab1d710f9b4f0f7542dc633a036a1bd90883e9a0..5b9d421bd25c2dea260092887eb04c624d405658 100644 (file)
@@ -372,7 +372,7 @@ bool CCECBusDevice::RequestVendorId(void)
 {
   bool bReturn(false);
 
-  if (!MyLogicalAddressContains(m_iLogicalAddress))
+  if (!MyLogicalAddressContains(m_iLogicalAddress) && GetMyLogicalAddress() != CECDEVICE_UNKNOWN)
   {
     MarkBusy();
     CLibCEC::AddLog(CEC_LOG_NOTICE, "<< requesting vendor ID of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress);