obs-outputs: Fix assign instead of compare on socket address type

Detected by Coverity Scan (CID 92187, 92170)
上级 5191622d
......@@ -524,7 +524,7 @@ static void win32_log_interface_type(struct rtmp_stream *stream)
if (rtmp->m_bindIP.addrLen == 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)
.sin_addr.S_un.S_addr;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册