1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3: Allow NULL for arg pwritten in cli_write_andx

This commit is contained in:
Volker Lendecke 2011-04-30 10:58:35 +02:00
parent 25df2fe8e2
commit c31871264c

View File

@ -903,7 +903,9 @@ NTSTATUS cli_write_andx_recv(struct tevent_req *req, size_t *pwritten)
if (tevent_req_is_nterror(req, &status)) {
return status;
}
*pwritten = state->written;
if (pwritten != 0) {
*pwritten = state->written;
}
return NT_STATUS_OK;
}