From: Michael Brown Date: Wed, 6 Dec 2006 20:44:29 +0000 (+0000) Subject: inet_aton() has a non-traditional return value X-Git-Tag: v0.9.3~944 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2863d1a1de2283920ed61b9b43e0fae77912f36c;p=thirdparty%2Fipxe.git inet_aton() has a non-traditional return value --- diff --git a/src/core/settings.c b/src/core/settings.c index df9504e84..d23755adf 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 ) );