21 lines
607 B
Diff
21 lines
607 B
Diff
|
Index: lib/bind/inet/inet_network.c
|
||
|
===================================================================
|
||
|
RCS file: /var/snap/bind9/lib/bind/inet/inet_network.c,v
|
||
|
retrieving revision 1.5
|
||
|
retrieving revision 1.6
|
||
|
diff -u -r1.5 -r1.6
|
||
|
--- lib/bind/inet/inet_network.c 27 Apr 2005 04:56:21 -0000 1.5
|
||
|
+++ lib/bind/inet/inet_network.c 15 Jan 2008 04:02:01 -0000 1.6
|
||
|
@@ -84,9 +84,9 @@
|
||
|
}
|
||
|
if (!digit)
|
||
|
return (INADDR_NONE);
|
||
|
+ if (pp >= parts + 4 || val > 0xffU)
|
||
|
+ return (INADDR_NONE);
|
||
|
if (*cp == '.') {
|
||
|
- if (pp >= parts + 4 || val > 0xffU)
|
||
|
- return (INADDR_NONE);
|
||
|
*pp++ = val, cp++;
|
||
|
goto again;
|
||
|
}
|