packages/net/djbdns/patches/220-dnscacheip-space-separator.patch

12 lines
350 B
Diff
Raw Normal View History

--- djbdns-1.05.original/dns_rcip.c 2001-02-11 21:11:45.000000000 +0000
+++ djbdns-1.05/dns_rcip.c 2003-11-03 14:55:10.000000000 +0000
@@ -17,7 +17,7 @@
x = env_get("DNSCACHEIP");
if (x)
while (iplen <= 60) {
- if (*x == '.')
+ if (*x == ' ' || *x == '\t' || *x == '\n')
++x;
else {
i = ip4_scan(x,ip + iplen);