diff options
author | Volker Lendecke <vl@samba.org> | 2011-06-19 21:10:01 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-06-20 12:33:24 +0200 |
commit | f0ff6f390a14b0da8466096c0886f5c4860b977f (patch) | |
tree | e359c3be54f1e7ca8e4125706ec6e6194f956214 /source3/libsmb | |
parent | 8e1b9640e73bf08b161f6e9a3d86ec71708098a4 (diff) | |
download | samba-f0ff6f390a14b0da8466096c0886f5c4860b977f.tar.gz samba-f0ff6f390a14b0da8466096c0886f5c4860b977f.tar.bz2 samba-f0ff6f390a14b0da8466096c0886f5c4860b977f.zip |
Use tevent_req_oom
This fixes a few Coverity errors
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/async_smb.c | 2 | ||||
-rw-r--r-- | source3/libsmb/cliconnect.c | 2 | ||||
-rw-r--r-- | source3/libsmb/namequery.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 145e0aeb55..ee15caee7a 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -369,7 +369,7 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx, if (cli->timeout) { endtime = timeval_current_ofs_msec(cli->timeout); if (!tevent_req_set_endtime(result, ev, endtime)) { - tevent_req_nomem(NULL, result); + tevent_req_oom(result); } } return result; diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index a9a1847f1c..62e3a35a36 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1365,7 +1365,7 @@ static void cli_sesssetup_blob_done(struct tevent_req *subreq) * More to send */ if (!cli_sesssetup_blob_next(state, &subreq)) { - tevent_req_nomem(NULL, req); + tevent_req_oom(req); return; } tevent_req_set_callback(subreq, cli_sesssetup_blob_done, req); diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 8d843745d3..dca740d3e6 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1595,7 +1595,7 @@ static struct tevent_req *name_queries_send( if (!tevent_req_set_endtime( subreq, state->ev, timeval_current_ofs(0, state->timeout_msec * 1000))) { - tevent_req_nomem(NULL, req); + tevent_req_oom(req); return tevent_req_post(req, ev); } tevent_req_set_callback(subreq, name_queries_done, req); @@ -1678,7 +1678,7 @@ static void name_queries_next(struct tevent_req *subreq) if (!tevent_req_set_endtime( subreq, state->ev, timeval_current_ofs(0, state->timeout_msec * 1000))) { - tevent_req_nomem(NULL, req); + tevent_req_oom(req); return; } state->subreqs[state->num_sent] = subreq; @@ -1915,7 +1915,7 @@ static struct tevent_req *query_wins_list_send( } if (!tevent_req_set_endtime(subreq, state->ev, timeval_current_ofs(2, 0))) { - tevent_req_nomem(NULL, req); + tevent_req_oom(req); return tevent_req_post(req, ev); } tevent_req_set_callback(subreq, query_wins_list_done, req); @@ -1962,7 +1962,7 @@ static void query_wins_list_done(struct tevent_req *subreq) } if (!tevent_req_set_endtime(subreq, state->ev, timeval_current_ofs(2, 0))) { - tevent_req_nomem(NULL, req); + tevent_req_oom(req); return; } tevent_req_set_callback(subreq, query_wins_list_done, req); |