Advertisement
Guest User

Quick fix for InspIRCD dns.cpp until someone fixes it

a guest
Mar 20th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. diff -ruN inspircd-inspircd.orig/src/dns.cpp inspircd-inspircd/src/dns.cpp
  2. --- inspircd-inspircd.orig/src/dns.cpp 2011-06-24 01:21:01.000000000 +0000
  3. +++ inspircd-inspircd/src/dns.cpp 2012-03-20 19:04:33.687154936 +0000
  4. @@ -795,7 +795,7 @@
  5. case DNS_QUERY_PTR:
  6. o = 0;
  7. q = 0;
  8. - while (q == 0 && i < length && o + 256 < 1023)
  9. + while (q == 0 && i >= 0 && i < length && o + 256 < 511)
  10. {
  11. if (header.payload[i] > 63)
  12. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement