From: Günther Deschner Date: Fri, 17 Oct 2008 19:15:40 +0000 (+0200) Subject: drsuapi: fix the drsuapi helper build for samba3. X-Git-Tag: samba-4.0.0alpha6~769^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8105e5bf3045d639767384a2b3f05e93e22471e8;p=thirdparty%2Fsamba.git drsuapi: fix the drsuapi helper build for samba3. Guenther --- diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c index 20674e221db..38474c25406 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;