From bc64c11eb355ec85fc768289698792c357801ae7 Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Fri, 21 Aug 2009 14:32:46 +0000 Subject: Fix dbm->seq loop. Details: http://lists.exim.org/lurker/message/20090729.134711.ef8c803e.en.html PR: ports/137257 Submitted by: Artis Caune --- mail/exim/files/patch-src_dbstuff.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mail/exim/files/patch-src_dbstuff.h (limited to 'mail') diff --git a/mail/exim/files/patch-src_dbstuff.h b/mail/exim/files/patch-src_dbstuff.h new file mode 100644 index 000000000000..f17c509120e4 --- /dev/null +++ b/mail/exim/files/patch-src_dbstuff.h @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- src/dbstuff.h.orig ++++ src/dbstuff.h +@@ -331,7 +331,7 @@ + + /* EXIM_DBSCAN - returns TRUE if data is returned, FALSE at end */ + #define EXIM_DBSCAN(db, key, data, first, cursor) \ +- ((db)->seq(db, &key, &data, (first? R_FIRST : 0)) == 0) ++ ((db)->seq(db, &key, &data, (first? R_FIRST : R_NEXT)) == 0) + + /* EXIM_DBDELETE_CURSOR - terminate scanning operation (null). Make it + refer to cursor, to keep picky compilers happy. */ -- cgit v1.2.3