Skip to content

Commit

Permalink
* apply a inet_aton patch from nico
Browse files Browse the repository at this point in the history
  • Loading branch information
nomis52 committed May 14, 2012
1 parent 75fb5e0 commit 1250f12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artnet/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ int artnet_net_inet_aton(const char *ip_address, struct in_addr *address) {
if (!inet_aton(ip_address, address)) {
#else
in_addr_t *addr = (in_addr_t*) address;
if ((*addr = inet_addr(ip_address)) == INADDR_NONE) {
if ((*addr = inet_addr(ip_address)) == INADDR_NONE &&
strcmp(ip_address, "255.255.255.255")) {
#endif
artnet_error("IP conversion from %s failed", ip_address);
return ARTNET_EARG;
Expand Down

0 comments on commit 1250f12

Please sign in to comment.