[tpop3d-discuss]Bug in maildir.c
Boris Kovalenko
boris at tagnet.ru
Sun, 13 Mar 2005 14:29:49 +0500
This is a multi-part message in MIME format.
--------------070609090903040307060907
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit
Hello!
On FreeBSD when maildir directory not exists tpop3d (child) crashes
with signal 11. This is due uninitialized "locked" variable in
maildir_new constructor. Patch attached.
With respect,
Boris
--------------070609090903040307060907
Content-Type: text/plain;
name="maildir.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="maildir.c.diff"
--- maildir.c.orig Tue Nov 25 01:23:20 2003
+++ maildir.c Sun Mar 13 14:26:55 2005
@@ -205,7 +205,7 @@
mailbox M, failM = NULL;
struct timeval tv1, tv2;
float f;
- int locked;
+ int locked = 0;
alloc_struct(_mailbox, M);
--------------070609090903040307060907--