Suppress compiler warning in CreateClientRequestPacketUlaGua.
It is a static function and is called with AF_INET6, so there is no real problem.
This commit is contained in:
parent
2eb3e069ba
commit
8e39b2af85
@ -404,6 +404,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…
Reference in New Issue
Block a user