diff options
author | Günther Deschner <gd@samba.org> | 2008-10-17 21:15:40 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-18 23:26:11 +0200 |
commit | 8105e5bf3045d639767384a2b3f05e93e22471e8 (patch) | |
tree | f61def5c629281651f43fd55d93ca2b51832ec61 /librpc/ndr | |
parent | 80af41b5eaf362700ce6a22b6cc4698b96dd3b6f (diff) | |
download | samba-8105e5bf3045d639767384a2b3f05e93e22471e8.tar.gz samba-8105e5bf3045d639767384a2b3f05e93e22471e8.tar.bz2 samba-8105e5bf3045d639767384a2b3f05e93e22471e8.zip |
drsuapi: fix the drsuapi helper build for samba3.
Guenther
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/ndr_drsuapi.c | 8 |
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; |