1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4:py_net: make domain and address fully optional to py_net_finddc

E.g. address=None is now also possible.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher
2015-01-27 21:46:06 +00:00
committed by Günther Deschner
parent 79b1041651
commit 450dc02d6d

View File

@ -560,7 +560,7 @@ static PyObject *py_net_finddc(py_net_Object *self, PyObject *args, PyObject *kw
PyObject *ret;
const char * const kwnames[] = { "flags", "domain", "address", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "I|ss",
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "I|zz",
discard_const_p(char *, kwnames),
&server_type, &domain, &address)) {
return NULL;