Skip to content
Snippets Groups Projects
Commit 6e5e30b9 authored by rswindell's avatar rswindell
Browse files

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.
parent 6772c6ec
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment