Browse Source

inet_aton() has a non-traditional return value

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
2863d1a1de
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/settings.c

+ 1
- 1
src/core/settings.c View File

235
 	struct in_addr ipv4;
235
 	struct in_addr ipv4;
236
 	int rc;
236
 	int rc;
237
 	
237
 	
238
-	if ( ( rc = inet_aton ( value, &ipv4 ) ) != 0 )
238
+	if ( ( rc = inet_aton ( value, &ipv4 ) ) == 0 )
239
 		return rc;
239
 		return rc;
240
 	option = set_dhcp_option ( context->options, setting->tag,
240
 	option = set_dhcp_option ( context->options, setting->tag,
241
 				   &ipv4, sizeof ( ipv4 ) );
241
 				   &ipv4, sizeof ( ipv4 ) );

Loading…
Cancel
Save