Skip to content

Commit 1250f12

Browse files
committed
* apply a inet_aton patch from nico
1 parent 75fb5e0 commit 1250f12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

artnet/network.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ int artnet_net_inet_aton(const char *ip_address, struct in_addr *address) {
717717
if (!inet_aton(ip_address, address)) {
718718
#else
719719
in_addr_t *addr = (in_addr_t*) address;
720-
if ((*addr = inet_addr(ip_address)) == INADDR_NONE) {
720+
if ((*addr = inet_addr(ip_address)) == INADDR_NONE &&
721+
strcmp(ip_address, "255.255.255.255")) {
721722
#endif
722723
artnet_error("IP conversion from %s failed", ip_address);
723724
return ARTNET_EARG;

0 commit comments

Comments
 (0)