summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-06-19 21:25:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-21 00:03:21 +0200
commit7d9e5527237b1a779b4cb464f64eae72c3a2162d (patch)
tree85205d8dc8decfd8155be50fcf33ab38c90c3429 /src
parent76602b9fbe1b292c5446a44604f49f3122666f9c (diff)
downloadsssd-7d9e5527237b1a779b4cb464f64eae72c3a2162d.tar.gz
sssd-7d9e5527237b1a779b4cb464f64eae72c3a2162d.tar.bz2
sssd-7d9e5527237b1a779b4cb464f64eae72c3a2162d.zip
FO: Check the return value of send_fn
Diffstat (limited to 'src')
-rw-r--r--src/providers/fail_over.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index 1d281358..5704e73a 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;