summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-10 09:21:45 +0200
committerVolker Lendecke <vlendec@samba.org>2011-07-10 10:36:11 +0200
commitfd240b546ea3152d16299524aa0dcb184202354a (patch)
treebdab9e32635741d2ac2ef93139cc8fc82c323b13
parent244c856cbfee2d08c0d47241daa7adb6a32f5f24 (diff)
downloadsamba-fd240b546ea3152d16299524aa0dcb184202354a.tar.gz
samba-fd240b546ea3152d16299524aa0dcb184202354a.tar.bz2
samba-fd240b546ea3152d16299524aa0dcb184202354a.zip
s3: Fix Coverity ID 2587,2588: CHECKED_RETURN
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 10 10:36:11 CEST 2011 on sn-devel-104
-rw-r--r--source3/libsmb/smb2cli_create.c2
-rw-r--r--source3/libsmb/smb2cli_query_directory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/smb2cli_create.c b/source3/libsmb/smb2cli_create.c
index bbec7b2051..794b1f1bff 100644
--- a/source3/libsmb/smb2cli_create.c
+++ b/source3/libsmb/smb2cli_create.c
@@ -79,7 +79,7 @@ struct tevent_req *smb2cli_create_send(
if (!convert_string_talloc(state, CH_UNIX, CH_UTF16,
filename, strlen(filename)+1,
&name_utf16, &name_utf16_len)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
return tevent_req_post(req, ev);
}
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);
}