summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-04-23 09:22:18 +0200
committerStefan Metzmacher <metze@samba.org>2012-04-23 09:30:10 +0200
commitdcf82e5869c885c1e62c4d317bb466a82cee249f (patch)
tree588b6c0a3fa34e9cc9b53a78ad612a929bbe9930
parent9ea9ad2de00749e32107975611a3adfa71d7b9f3 (diff)
downloadsamba-dcf82e5869c885c1e62c4d317bb466a82cee249f.tar.gz
samba-dcf82e5869c885c1e62c4d317bb466a82cee249f.tar.bz2
samba-dcf82e5869c885c1e62c4d317bb466a82cee249f.zip
s4:libnet_become_dc: add missing 'return' after composite_error()
metze
-rw-r--r--source4/libnet/libnet_become_dc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index c7d0b30503..28bb5a1e0e 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -2395,6 +2395,7 @@ static void becomeDC_drsuapi1_add_entry_recv(struct tevent_req *subreq)
"method succeeded but objects returned are %d (expected 1).\n",
r->out.ctr->ctr3.count));
composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
+ return;
}
s->dest_dsa.ntds_guid = r->out.ctr->ctr3.objects[0].guid;
@@ -2416,6 +2417,7 @@ static void becomeDC_drsuapi1_add_entry_recv(struct tevent_req *subreq)
r->out.ctr->ctr2.dir_err,
win_errstr(r->out.ctr->ctr2.extended_err)));
composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
+ return;
}
s->dest_dsa.ntds_guid = r->out.ctr->ctr2.objects[0].guid;