summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/connect_multi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/socket/connect_multi.c b/source4/lib/socket/connect_multi.c
index 96277a6139..5358606896 100644
--- a/source4/lib/socket/connect_multi.c
+++ b/source4/lib/socket/connect_multi.c
@@ -132,6 +132,11 @@ static void connect_multi_next_socket(struct composite_context *result)
multi->num_connects_sent += 1;
+ if (multi->server_address == NULL) {
+ composite_error(result, NT_STATUS_OBJECT_NAME_NOT_FOUND);
+ return;
+ }
+
state = talloc(multi, struct connect_one_state);
if (composite_nomem(state, result)) return;