blob: 9eabf06f8674c87fd3187c07634628c22ba061a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- ./src/helper.c.orig 2015-03-17 15:34:48.109903801 -0100
+++ ./src/helper.c 2015-03-17 16:08:02.954490213 -0100
@@ -284,6 +284,8 @@
aptr = parse_rr(aptr, abuf, alen);
else
aptr = skip_rr(aptr, abuf, alen);
+ if (aptr == NULL)
+ return;
}
if (caadr == 0) {
for (i = 0; i < nscount; i++) {
@@ -291,6 +293,8 @@
}
for (i = 0; i < arcount && caadr == 0; i++) {
aptr = parse_rr(aptr, abuf, alen);
+ if (aptr == NULL)
+ return;
}
}
}
|