This backports corrections for the SMB2 module resolving crashes on failure and here-by fixes #597 (closed)