obs-outputs: Fix assign instead of compare on socket address type
Detected by Coverity Scan (CID 92187, 92170)master
parent
5191622d21
commit
c42f666b02
|
@ -524,7 +524,7 @@ static void win32_log_interface_type(struct rtmp_stream *stream)
|
||||||
|
|
||||||
if (rtmp->m_bindIP.addrLen == 0)
|
if (rtmp->m_bindIP.addrLen == 0)
|
||||||
source_addr = 0;
|
source_addr = 0;
|
||||||
else if (rtmp->m_bindIP.addr.ss_family = AF_INET)
|
else if (rtmp->m_bindIP.addr.ss_family == AF_INET)
|
||||||
source_addr = (*(struct sockaddr_in*)&rtmp->m_bindIP)
|
source_addr = (*(struct sockaddr_in*)&rtmp->m_bindIP)
|
||||||
.sin_addr.S_un.S_addr;
|
.sin_addr.S_un.S_addr;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue