BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Tim Beale <timbeale@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
PyErr_SetNTSTATUS(status);
return NULL;
}
- result = Py_BuildValue("s#", (char *)buf, (int)buflen);
+ result = PyBytes_FromStringAndSize((const char *)buf, buflen);
TALLOC_FREE(req);
return result;
}