Suppress compiler warning in CreateClientRequestPacket.
It is a static function and is called with AF_INET or AF_INET6, so there is no real problem. (cherry picked from commit 1b38cc963aec8c6c45bcd33db5c5eeb2de21826a)
This commit is contained in:
parent
f020c4f5fb
commit
7308f42a7a
@ -344,6 +344,8 @@ static int CreateClientRequestPacket(
|
||||
} else if (AddressFamily == AF_INET6) {
|
||||
rc = snprintf(TempBuf, sizeof(TempBuf), "HOST: [%s]:%d\r\n",
|
||||
SSDP_IPV6_LINKLOCAL, 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