summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-04-08 22:59:16 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-04-08 23:22:55 +0200
commit6510b2cdd21c473bd146b7630d69d06342801cb1 (patch)
treecfa6db5fce35bc5d86467e98fbcdf43cc5cd939a /source4/libnet
parent814e20e7da60f0ec33dfea1d4d6dda1b653b818d (diff)
downloadsamba-6510b2cdd21c473bd146b7630d69d06342801cb1.tar.gz
samba-6510b2cdd21c473bd146b7630d69d06342801cb1.tar.bz2
samba-6510b2cdd21c473bd146b7630d69d06342801cb1.zip
s4-net: Use new Net() object in net export keytab.
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/py_net.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c
index 71e7cd87d6..569f3955bb 100644
--- a/source4/libnet/py_net.c
+++ b/source4/libnet/py_net.c
@@ -1,7 +1,7 @@
/*
Unix SMB/CIFS implementation.
Samba utility functions
- Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008
+ Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008-2010
Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2009
This program is free software; you can redistribute it and/or modify
@@ -215,6 +215,10 @@ PyTypeObject py_net_Type = {
void initnet(void)
{
PyObject *m;
+
+ if (PyType_Ready(&py_net_Type) < 0)
+ return;
+
m = Py_InitModule3("net", NULL, NULL);
if (m == NULL)
return;