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.
This commit is contained in:
parent
c67187ac94
commit
1b38cc963a
@ -336,6 +336,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