summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcli/nbt/pynbt.c4
-rw-r--r--source4/libnet/py_net.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/libcli/nbt/pynbt.c b/libcli/nbt/pynbt.c
index 3200482491..9179245e88 100644
--- a/libcli/nbt/pynbt.c
+++ b/libcli/nbt/pynbt.c
@@ -48,7 +48,7 @@ static PyObject *py_nbt_node_init(PyTypeObject *self, PyObject *args, PyObject *
return NULL;
ev = s4_event_context_init(ret->mem_ctx);
- ret->socket = nbt_name_socket_init(ret->mem_ctx, ev, lp_iconv_convenience(global_loadparm));
+ ret->socket = nbt_name_socket_init(ret->mem_ctx, ev, py_iconv_convenience(ret->mem_ctx));
return (PyObject *)ret;
}
@@ -171,7 +171,7 @@ static PyObject *py_nbt_name_query(PyObject *self, PyObject *args, PyObject *kwa
return NULL;
PyTuple_SetItem(ret, 0, PyString_FromString(io.out.reply_from));
- py_name = PyObject_FromNBTName(node->socket, lp_iconv_convenience(global_loadparm), &io.out.name);
+ py_name = PyObject_FromNBTName(node->socket, py_iconv_convenience(node->socket), &io.out.name);
if (py_name == NULL)
return NULL;
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c
index d8faa4fe6c..37d51d7840 100644
--- a/source4/libnet/py_net.c
+++ b/source4/libnet/py_net.c
@@ -22,6 +22,7 @@
#include "libnet.h"
#include "libcli/security/security.h"
#include "lib/events/events.h"
+#include "param/param.h"
static struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev)
{