Fix crash if %h is used in a template and --headers is not set

git-svn: trunk@960
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent 2732835660
commit 54a9f64ec0
  1. 6
      clamav-devel/ChangeLog
  2. 1
      clamav-devel/clamav-milter/INSTALL
  3. 12
      clamav-devel/clamav-milter/clamav-milter.c

@ -1,3 +1,9 @@
Sat Oct 2 18:52:32 BST 2004 (njh)
----------------------------------
* clamav-milter: Fix crash if %h is used in a template and --headers is
not set reported by "Sergey Y. Afonin"
<asy@kraft-s.ru>
Sat Oct 2 16:41:02 BST 2004 (njh)
----------------------------------
* libclamav/table.c: Fix compilation problem when --enable-debug is not set

@ -511,6 +511,7 @@ Changes
an operating system that doesn't support it
0.80e 30/9/04 If you say --from with no arguments, the from address is now
set to the orginator's address
0.80f 2/10/04 Fix crash if %h is used in a template and --headers is not set
INTERNATIONALISATION

@ -26,6 +26,9 @@
*
* Change History:
* $Log: clamav-milter.c,v $
* Revision 1.137 2004/10/02 17:54:06 nigelhorne
* Fix crash if %h is used in a template and --headers is not set
*
* Revision 1.136 2004/09/30 19:18:30 nigelhorne
* Allow --from with no e-mail address
*
@ -419,9 +422,9 @@
* Revision 1.6 2003/09/28 16:37:23 nigelhorne
* Added -f flag use MaxThreads if --max-children not set
*/
static char const rcsid[] = "$Id: clamav-milter.c,v 1.136 2004/09/30 19:18:30 nigelhorne Exp $";
static char const rcsid[] = "$Id: clamav-milter.c,v 1.137 2004/10/02 17:54:06 nigelhorne Exp $";
#define CM_VERSION "0.80e"
#define CM_VERSION "0.80f"
/*#define CONFDIR "/usr/local/etc"*/
@ -3205,10 +3208,13 @@ header_list_add(header_list_t list, const char *headerf, const char *headerv)
}
static void
header_list_print(header_list_t list, FILE *fp)
header_list_print(const header_list_t list, FILE *fp)
{
const struct header_node_t *iter;
if(list == NULL)
return;
for(iter = list->first; iter; iter = iter->next) {
if(strncmp(iter->header, "From ", 5) == 0)
putc('>', fp);

Loading…
Cancel
Save