SA Bugzilla – Bug 1879
libspamc is closing file descriptors it didn't open
Last modified: 2003-05-08 12:59:33 UTC
libspamc can potentially close file descriptors it didn't open. This is especially critical because I use libspamc in qmail-smtpd to do spam checking in the SMTP conversation. libspamc does a: close(0) and my SMTP connection goes away. :-) Attached is are patches for 2.53 (fd.patch) and HEAD (fd-head.patch).
Created attachment 948 [details] patch for 2.53
Created attachment 949 [details] patch for HEAD
doh! definitely needs to go in :( OKAY: approved for 2.54 imo
OKAY: as long as you tested it, jm :-)
Those patches compile and seem logically correct, but I haven't tried them in a production environment yet. If you want to wait a few days, I'll have this fix rolled out to a dozen production machines.
OKAY: ditto quinlan's note
I've just gone through it and it all makes sense; also make test passes fine ;). applied to 2.54 and HEAD