Eliminated redundant strdup() call in smb_hashstr()/strip_chars(). Eliminated redundant memset() call in smb_getmsgidx_by_hash().