Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/nameser reduce diffs with other copies of this code.
details: https://anonhg.NetBSD.org/src/rev/feec054b849a
branches: trunk
changeset: 327408:feec054b849a
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 07 01:07:01 2014 +0000
description:
reduce diffs with other copies of this code.
diffstat:
lib/libc/nameser/ns_name.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 1f3281effab8 -r feec054b849a lib/libc/nameser/ns_name.c
--- a/lib/libc/nameser/ns_name.c Fri Mar 07 01:04:29 2014 +0000
+++ b/lib/libc/nameser/ns_name.c Fri Mar 07 01:07:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_name.c,v 1.10 2014/03/07 01:00:58 christos Exp $ */
+/* $NetBSD: ns_name.c,v 1.11 2014/03/07 01:07:01 christos Exp $ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -22,7 +22,7 @@
#ifdef notdef
static const char rcsid[] = "Id: ns_name.c,v 1.11 2009/01/23 19:59:16 each Exp";
#else
-__RCSID("$NetBSD: ns_name.c,v 1.10 2014/03/07 01:00:58 christos Exp $");
+__RCSID("$NetBSD: ns_name.c,v 1.11 2014/03/07 01:07:01 christos Exp $");
#endif
#endif
@@ -473,12 +473,12 @@
_DIAGASSERT(__type_fit(int, srcp - src + 1));
len = (int)(srcp - src + 1);
}
- l = ((n & 0x3f) << 8) | (*srcp & 0xff);
- if (l >= eom - msg) { /*%< Out of range. */
+ n = ((n & 0x3f) << 8) | (*srcp & 0xff);
+ if (n >= eom - msg) { /*%< Out of range. */
errno = EMSGSIZE;
return (-1);
}
- srcp = msg + l;
+ srcp = msg + n;
checked += 2;
/*
* Check for loops in the compressed name;
Home |
Main Index |
Thread Index |
Old Index