Fixed typo in setsockopt invocation which sets TTL.

This commit is contained in:
Konstantin Tokarev 2015-07-23 12:40:42 +03:00
parent af2ec81f14
commit 2c56ffceeb
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ upnpDiscoverDevices(const char * const deviceTypes[],
return NULL;
}
if(setsockopt(sudp, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl) < 0))
if(setsockopt(sudp, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0)
{
/* not a fatal error */
PRINT_SOCKET_ERROR("setsockopt(IP_MULTICAST_TTL,...)");