Suppress compiler warning in CreateClientRequestPacketUlaGua.
It is a static function and is called with AF_INET6, so there is no real problem. (cherry picked from commit 8e39b2af85512bd56a5d593fbd83f8ab227c0097)
This commit is contained in:
parent
d56a68d771
commit
12b88a9fbf
@ -412,6 +412,8 @@ static int CreateClientRequestPacketUlaGua(
|
||||
} else if (AddressFamily == AF_INET6) {
|
||||
rc = snprintf(TempBuf, sizeof(TempBuf), "HOST: [%s]:%d\r\n",
|
||||
SSDP_IPV6_SITELOCAL, SSDP_PORT);
|
||||
} else {
|
||||
return UPNP_E_INVALID_ARGUMENT;
|
||||
}
|
||||
if (rc < 0 || (unsigned int) rc >= sizeof(TempBuf))
|
||||
return UPNP_E_INTERNAL_ERROR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user