diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-10 04:22:58 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-15 00:51:19 +0100 |
commit | 52f7e38d6a350cfd645371c82a8c2b189cf7531f (patch) | |
tree | b737ee546125f97634b05124b20bdba2df89a793 /source4/dsdb | |
parent | 0a9f780d26d8d193081915f4f3aff7b7f8335a28 (diff) | |
download | samba-52f7e38d6a350cfd645371c82a8c2b189cf7531f.tar.gz |
s4-schema_syntax: Log error message when _dsdb_syntax_OID_oid_drsuapi_to_ldb() fails
I haven't found a way to test this function during replication so far,
but when I do, it will be useful to notice this error in the log file
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/schema/schema_syntax.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index 713edbb5462..3f2d3bb62df 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -1094,7 +1094,11 @@ static WERROR _dsdb_syntax_OID_oid_drsuapi_to_ldb(const struct dsdb_syntax_ctx * status = dsdb_schema_pfm_oid_from_attid(ctx->pfm_remote, attid, out->values, &oid); - W_ERROR_NOT_OK_RETURN(status); + if (!W_ERROR_IS_OK(status)) { + DEBUG(0,(__location__ ": Error: Unknown ATTID 0x%08X\n", + attid)); + return status; + } out->values[i] = data_blob_string_const(oid); } |