mirror of https://github.com/ipxe/ipxe.git
inet_aton() has a non-traditional return value
parent
38ae94f8ce
commit
2863d1a1de
|
@ -235,7 +235,7 @@ static int set_ipv4 ( struct config_context *context,
|
|||
struct in_addr ipv4;
|
||||
int rc;
|
||||
|
||||
if ( ( rc = inet_aton ( value, &ipv4 ) ) != 0 )
|
||||
if ( ( rc = inet_aton ( value, &ipv4 ) ) == 0 )
|
||||
return rc;
|
||||
option = set_dhcp_option ( context->options, setting->tag,
|
||||
&ipv4, sizeof ( ipv4 ) );
|
||||
|
|
Loading…
Reference in New Issue