summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librpc/ndr/ndr_drsuapi.c8
1 files changed, 8 insertions, 0 deletions
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;