s3:smbd: Fix bug 6690, wrong error check