From 8105e5bf3045d639767384a2b3f05e93e22471e8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 17 Oct 2008 21:15:40 +0200 Subject: drsuapi: fix the drsuapi helper build for samba3. Guenther --- librpc/ndr/ndr_drsuapi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c index 20674e221d..38474c2540 100644 --- a/librpc/ndr/ndr_drsuapi.c +++ b/librpc/ndr/ndr_drsuapi.c @@ -91,7 +91,11 @@ enum ndr_err_code ndr_push_drsuapi_DsReplicaOID(struct ndr_push *ndr, int ndr_fl if (r->oid) { DATA_BLOB blob; +#if (_SAMBA_BUILD_ == 3) + if (StrnCaseCmp("ff", r->oid, 2) == 0) { +#else if (strncasecmp("ff", r->oid, 2) == 0) { +#endif blob = strhex_to_data_blob(ndr, r->oid); if (!blob.data) { return ndr_push_error(ndr, NDR_ERR_SUBCONTEXT, @@ -163,7 +167,11 @@ size_t ndr_size_drsuapi_DsReplicaOID_oid(const char *oid, int flags) if (!oid) return 0; +#if (_SAMBA_BUILD_ == 3) + if (StrnCaseCmp("ff", oid, 2) == 0) { +#else if (strncasecmp("ff", oid, 2) == 0) { +#endif _blob = strhex_to_data_blob(NULL, oid); if (_blob.data) { ret = _blob.length; -- cgit