chiark / gitweb /
Fix crash bug in inputfile_queue_check_expired
authorIan Jackson <ian@chiark.greenend.org.uk>
Tue, 1 Jun 2010 10:14:27 +0000 (11:14 +0100)
committerIan Jackson <ian@chiark.greenend.org.uk>
Tue, 1 Jun 2010 10:14:27 +0000 (11:14 +0100)
xmit.c

diff --git a/xmit.c b/xmit.c
index ace7286..c4b1854 100644 (file)
--- a/xmit.c
+++ b/xmit.c
@@ -184,6 +184,7 @@ void inputfile_queue_check_expired(InputFile *ipf) {
 
   for (;;) {
     Article *art= LIST_HEAD(ipf->queue);
+    if (!art) break;
     int expd= article_check_expired(art);
     if (!expd) break;
   }