Hi, guys

When I use dbmail + sqlite + postfix
if add forward, like:
dbmail-users -x [EMAIL PROTECTED] -t bbb
and then run command dbmail-users -l [EMAIL PROTECTED] it will crash...
I already file a bug http://www.dbmail.org/mantis/view.php?id=701

I test other datebase, no this problem. I think there is a bad logic in 
module/dbsqlite.c, when query more than 1 rows in the table. void 
*db_get_result_set() just return the pointer "lastq" and saveres point to it. 
Then as we need to use saveres, lastq has been freed, so saveres is null... It 
crash.
I modify the code, when query result's rows more than 1 line, save the sql 
query line, if need to use saveres, let it do another query and save the result 
to another structure. After test use  dbmail-users -l it is ok. But when send a 
mail to  [EMAIL PROTECTED], it meets a datebase lock...  As I am a junior coder 
and no little about sqlite datebase...  I can not found a better solution. 
If anyone care of it and have better idea to resolve it?

Thanks,
LiuXiao
_________________________________________________________________
多个邮箱同步管理,live mail客户端万人抢用中
http://get.live.cn/product/mail.html
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to