s4-drs: el may not be a talloc pointer
authorAndrew Tridgell <tridge@samba.org>
Thu, 24 Sep 2009 14:08:31 +0000 (07:08 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 24 Sep 2009 17:43:30 +0000 (10:43 -0700)
Use msg->elements for the new element values

source4/rpc_server/drsuapi/addentry.c

index c7c95821ab4913c888801631acb4f2dfb96be5f2..7bf8f3959262ea102b6d39979d2902f91489ea00 100644 (file)
@@ -101,7 +101,7 @@ static WERROR drsuapi_add_SPNs(struct drsuapi_bind_state *b_state,
                }
 
                el->num_values = 2;
-               el->values = talloc_array(el, struct ldb_val, 2);
+               el->values = talloc_array(msg->elements, struct ldb_val, 2);
                if (el->values == NULL) {
                        return WERR_NOMEM;
                }