]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
drsuapi: fix the drsuapi helper build for samba3.
authorGünther Deschner <gd@samba.org>
Fri, 17 Oct 2008 19:15:40 +0000 (21:15 +0200)
committerGünther Deschner <gd@samba.org>
Sat, 18 Oct 2008 21:26:11 +0000 (23:26 +0200)
Guenther

librpc/ndr/ndr_drsuapi.c

index 20674e221db737766e265ac4b761f85f98bd65f2..38474c254060d69ab3f4ad8f367f0cbfc1b6bbab 100644 (file)
@@ -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;