git-svn: trunk@4552
aCaB authored on 2008/12/12 03:03:43... | ... |
@@ -114,7 +114,7 @@ char *txtquery(const char *domain, unsigned int *ttl) |
114 | 114 |
pt += INT16SZ; /* class */ |
115 | 115 |
GETLONG(cttl, pt); |
116 | 116 |
GETSHORT(size, pt); |
117 |
- if(pt + size < answer || pt + size >= answend) { |
|
117 |
+ if(pt + size < answer || pt + size > answend) { |
|
118 | 118 |
logg("^DNS rr overflow\n"); |
119 | 119 |
return NULL; |
120 | 120 |
} |