Synch No Gnus 200512180014.
authoryamaoka <yamaoka>
Sun, 18 Dec 2005 02:56:04 +0000 (02:56 +0000)
committeryamaoka <yamaoka>
Sun, 18 Dec 2005 02:56:04 +0000 (02:56 +0000)
lisp/ChangeLog
lisp/dns.el

index e1ab882..47b21dd 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * dns.el (query-dns): Make sure we check the buffer size before
+       removing tcp headers.
+
 2005-12-16  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-article-delete-text-of-type): Enable it to
index 2229b0a..98c07bf 100644 (file)
@@ -406,7 +406,8 @@ If REVERSEP, look up an IP address."
            (decf times step))
          (ignore-errors
            (delete-process process))
-         (when tcp-p
+         (when (and tcp-p
+                    (>= (buffer-size) 2))
            (goto-char (point-min))
            (delete-region (point) (+ (point) 2)))
          (unless (zerop (buffer-size))