summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-12-10 04:22:58 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-12-15 00:51:19 +0100
commit52f7e38d6a350cfd645371c82a8c2b189cf7531f (patch)
treeb737ee546125f97634b05124b20bdba2df89a793 /source4
parent0a9f780d26d8d193081915f4f3aff7b7f8335a28 (diff)
downloadsamba-52f7e38d6a350cfd645371c82a8c2b189cf7531f.tar.gz
samba-52f7e38d6a350cfd645371c82a8c2b189cf7531f.tar.bz2
samba-52f7e38d6a350cfd645371c82a8c2b189cf7531f.zip
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')
-rw-r--r--source4/dsdb/schema/schema_syntax.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c
index 713edbb546..3f2d3bb62d 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);
}