summaryrefslogtreecommitdiffstats
path: root/src/core/settings.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-06 21:44:29 +0100
committerMichael Brown2006-12-06 21:44:29 +0100
commit2863d1a1de2283920ed61b9b43e0fae77912f36c (patch)
treedc212382480545a77a559b5d28643ca105079fe6 /src/core/settings.c
parentA cleaner method of handling login redirection; just use the existing (diff)
downloadipxe-2863d1a1de2283920ed61b9b43e0fae77912f36c.tar.gz
ipxe-2863d1a1de2283920ed61b9b43e0fae77912f36c.tar.xz
ipxe-2863d1a1de2283920ed61b9b43e0fae77912f36c.zip
inet_aton() has a non-traditional return value
Diffstat (limited to 'src/core/settings.c')
-rw-r--r--src/core/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index df9504e8..d23755ad 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -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 ) );