diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-19 21:25:58 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-21 00:03:21 +0200 |
commit | 7d9e5527237b1a779b4cb464f64eae72c3a2162d (patch) | |
tree | 85205d8dc8decfd8155be50fcf33ab38c90c3429 /src | |
parent | 76602b9fbe1b292c5446a44604f49f3122666f9c (diff) | |
download | sssd-7d9e5527237b1a779b4cb464f64eae72c3a2162d.tar.gz sssd-7d9e5527237b1a779b4cb464f64eae72c3a2162d.tar.xz sssd-7d9e5527237b1a779b4cb464f64eae72c3a2162d.zip |
FO: Check the return value of send_fn
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/fail_over.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 1d2813589..5704e73a9 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -1202,6 +1202,10 @@ resolve_srv_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, server->srv_data->proto, server->srv_data->discovery_domain, ctx->srv_pvt); + if (subreq == NULL) { + ret = ENOMEM; + goto done; + } tevent_req_set_callback(subreq, resolve_srv_done, req); break; |