Subj : CVS commit src/smblib/smblib.c To : All From : rswindell Date : Fri Dec 31 2004 01:23 am src/smblib smblib.c 1.125 1.126 Update of /cvsroot/sbbs/src/smblib In directory cvs.synchro.net:/tmp/cvs-serv8979 Modified Files: smblib.c Log Message: Fixed perplexing performance problem in smb_addmsg()->smb_updatethread(): smb_lockmsghdr() was sleeping because the lock attempt failed (the header was already locked in smb_addmsg()). So smb_lockmsghdr() will now only sleep if the unlock() call was successful. Bugfix in smb_getmsghdr(), msg->total_hfields was incremented before the read and malloc of hfield_dat, if the read failed, the subsequent call to smb_freemsgmem() would segfault. .