uint32_t i;
uint32_t hi_word, lo_word;
DATA_BLOB bin_oid = {NULL, 0};
+ char *oid;
struct dsdb_schema_prefixmap_oid *pfm_entry;
WERROR werr = WERR_OK;
bin_oid.data[bin_oid.length-1] = lo_word & 0x7f;
}
- if (!ber_read_OID_String(mem_ctx, bin_oid, _oid)) {
+ if (!ber_read_OID_String(mem_ctx, bin_oid, &oid)) {
DEBUG(0,("ber_read_OID_String() failed for %s\n",
hex_encode_talloc(bin_oid.data, bin_oid.data, bin_oid.length)));
werr = WERR_INTERNAL_ERROR;
/* free locally allocated memory */
talloc_free(bin_oid.data);
+ *_oid = oid;
+
return werr;
}
for (i=0; i < in->num_values; i++) {
DATA_BLOB blob;
- const char *oid_out;
+ char *oid_out;
const char *oid = (const char*)in->values[i].data;
if (!ber_write_OID_String(tmp_ctx, &blob, oid)) {
int i;
uint32_t hi_word, lo_word;
DATA_BLOB bin_oid = {NULL, 0};
+ char *oid;
struct drsuapi_DsReplicaOIDMapping *map_entry = NULL;
TALLOC_CTX *mem_ctx = talloc_named(tctx, 0, "util_drsuapi_oid_from_attid");
}
torture_assert(tctx,
- ber_read_OID_String(tctx, bin_oid, _oid),
+ ber_read_OID_String(tctx, bin_oid, &oid),
"Failed to decode binary OID");
talloc_free(mem_ctx);
+ *_oid = oid;
+
return true;
}