diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-12-11 11:17:37 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-12-11 11:19:32 +0100 |
commit | 31321ac868885762fdf5f566e8f79806a4ab4a8a (patch) | |
tree | 6aa16e7178db916f88ab2721bd819e8e849dda0d | |
parent | f3205d31d60e54f39abf8ee190d668ba879c6627 (diff) | |
download | samba-31321ac868885762fdf5f566e8f79806a4ab4a8a.tar.gz samba-31321ac868885762fdf5f566e8f79806a4ab4a8a.tar.bz2 samba-31321ac868885762fdf5f566e8f79806a4ab4a8a.zip |
s4:libnet/libnet_become_dc - Fix a small glitch in "becomeDC_drsuapi1_add_entry_send"
We shouldn't use the now uninitialised "status" variable anymore.
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index f64ef6f8dd..b8fed68b59 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -1939,7 +1939,6 @@ static void becomeDC_drsuapi1_add_entry_send(struct libnet_BecomeDC_state *s) struct drsuapi_DsAttributeValue *vs; DATA_BLOB *vd; const struct GUID *v; - NTSTATUS status; vs = talloc_array(attrs, struct drsuapi_DsAttributeValue, 1); if (composite_nomem(vs, c)) return; @@ -1950,9 +1949,7 @@ static void becomeDC_drsuapi1_add_entry_send(struct libnet_BecomeDC_state *s) v = &s->dest_dsa.invocation_id; c->status = GUID_to_ndr_blob(v, vd, &vd[0]); - if (!NT_STATUS_IS_OK(status)) { - if (!composite_is_ok(c)) return; - } + if (!composite_is_ok(c)) return; vs[0].blob = &vd[0]; |