summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb2cli_query_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb/smb2cli_query_directory.c')
-rw-r--r--source3/libsmb/smb2cli_query_directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_query_directory.c b/source3/libsmb/smb2cli_query_directory.c
index 554b267927..f9a1bfe4ee 100644
--- a/source3/libsmb/smb2cli_query_directory.c
+++ b/source3/libsmb/smb2cli_query_directory.c
@@ -60,7 +60,7 @@ struct tevent_req *smb2cli_query_directory_send(TALLOC_CTX *mem_ctx,
if (!convert_string_talloc(state, CH_UNIX, CH_UTF16,
mask, strlen(mask)+1,
&dyn, &dyn_len)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
return tevent_req_post(req, ev);
}