mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
inet_aton() has a non-traditional return value
This commit is contained in:
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
Block a user