X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fdns.el;h=05b2f7329b6427160fa9758d06023e4bd1bda841;hb=c0d7674c3cb02a31d3d2c0f240e44fb48827d3ab;hp=2ab3e265f48fb16ef479e770743ff5dc158f4d1f;hpb=46d626985070541976bf9491dca56cdaf07b7ca1;p=gnus diff --git a/lisp/dns.el b/lisp/dns.el index 2ab3e265f..05b2f7329 100644 --- a/lisp/dns.el +++ b/lisp/dns.el @@ -1,6 +1,6 @@ ;;; dns.el --- Domain Name Service lookups -;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +;; Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: network @@ -408,7 +408,7 @@ If REVERSEP, look up an IP address." (>= (buffer-size) 2)) (goto-char (point-min)) (delete-region (point) (+ (point) 2))) - (unless (zerop (buffer-size)) + (when (>= (buffer-size) 2) (let ((result (dns-read (buffer-string)))) (if fullp result