diff options
author | Michael Brown | 2006-12-06 21:44:29 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-06 21:44:29 +0100 |
commit | 2863d1a1de2283920ed61b9b43e0fae77912f36c (patch) | |
tree | dc212382480545a77a559b5d28643ca105079fe6 /src/core/settings.c | |
parent | A cleaner method of handling login redirection; just use the existing (diff) | |
download | ipxe-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.c | 2 |
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 ) ); |