summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;