TALLOC_FREE(subreq);
if (nwritten == -1) {
/* here, we need to notify all pending requests */
- smb2cli_notify_pending(state->cli, map_nt_error_from_unix(err));
+ NTSTATUS status = map_nt_error_from_unix_common(err);
+ smb2cli_notify_pending(state->cli, status);
return;
}
}
* We need to close the connection and notify
* all pending requests.
*/
- smb2cli_notify_pending(cli, map_nt_error_from_unix(err));
+ status = map_nt_error_from_unix_common(err);
+ smb2cli_notify_pending(cli, status);
TALLOC_FREE(frame);
return;
}