david/ipxe
Archived
1
0

inet_aton() has a non-traditional return value

This commit is contained in:
Michael Brown 2006-12-06 20:44:29 +00:00
parent 38ae94f8ce
commit 2863d1a1de

View File

@ -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 ) );