s4/param: py2/p3 compat override_prefixmap should be string/bytes
authorNoel Power <noel.power@suse.com>
Mon, 14 May 2018 19:03:59 +0000 (20:03 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 15 Sep 2018 13:18:26 +0000 (15:18 +0200)
source4/param/provision.c

index 4dab31f5c20a0bbb077fb3de07d81a6f63b7d96e..153850667b12742234d1987243cdc35b9da3fa4e 100644 (file)
@@ -377,7 +377,7 @@ struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx,
 
        if (override_prefixmap) {
                PyDict_SetItemString(parameters, "override_prefixmap",
-                                    PyStr_FromStringAndSize((const char *)override_prefixmap->data,
+                                    PyBytes_FromStringAndSize((const char *)override_prefixmap->data,
                                                                override_prefixmap->length));
        }