Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/nameser/ns_parse.c,v retrieving revision 1.6.4.1 retrieving revision 1.7 diff -u -p -r1.6.4.1 -r1.7 --- src/lib/libc/nameser/ns_parse.c 2011/01/06 21:42:48 1.6.4.1 +++ src/lib/libc/nameser/ns_parse.c 2009/04/12 17:07:17 1.7 @@ -1,4 +1,4 @@ -/* $NetBSD: ns_parse.c,v 1.6.4.1 2011/01/06 21:42:48 riz Exp $ */ +/* $NetBSD: ns_parse.c,v 1.7 2009/04/12 17:07:17 christos Exp $ */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -22,7 +22,7 @@ #ifdef notdef static const char rcsid[] = "Id: ns_parse.c,v 1.10 2009/01/23 19:59:16 each Exp"; #else -__RCSID("$NetBSD: ns_parse.c,v 1.6.4.1 2011/01/06 21:42:48 riz Exp $"); +__RCSID("$NetBSD: ns_parse.c,v 1.7 2009/04/12 17:07:17 christos Exp $"); #endif #endif @@ -212,8 +212,7 @@ ns_parserr2(ns_msg *handle, ns_sect sect int tmp; /* Make section right. */ - tmp = section; - if (tmp < 0 || section >= ns_s_max) + if ((tmp = section) < 0 || section >= ns_s_max) RETERR(ENODEV); if (section != handle->_sect) setsection(handle, section);