Skip to content

Commit

Permalink
inet_aton() has a non-traditional return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Dec 6, 2006
1 parent 38ae94f commit 2863d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/settings.c
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 2863d1a

Please sign in to comment.