Package: libesmtp-dev
Version: 1.0.3-1
Severity: normal

When trying to call smtp_set_header to set a "Sender" header, libesmtp
causes segfaults when the message this was done with is to be sent.
I believe this is caused by the following line missing in the routine
set_sender in header.c. (set_to and set_cc all have this line, and
the segfault is occuring in print_sender due to header->value being NULL.

diff -u -r libesmtp-1.0.3r1/headers.c libesmtp-1.0.3r1.patched/headers.c
--- libesmtp-1.0.3r1/headers.c  2003-07-29 18:39:00.000000000 +0200
+++ libesmtp-1.0.3r1.patched/headers.c  2005-02-08 17:50:04.000000000 +0100
@@ -327,6 +327,7 @@
   mbox->next = NULL;
 
   mbox->next = header->value;
+  header->value = mbox;
   return 1;
 }
 

-- System Information:
Debian Release: 3.1

Versions of packages libesmtp-dev depends on:
ii  libc6-dev                   2.3.2.ds1-20 GNU C Library: Development Librari
ii  libesmtp5                   1.0.3-1      LibESMTP SMTP client library


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to