From 6510b2cdd21c473bd146b7630d69d06342801cb1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 8 Apr 2010 22:59:16 +0200 Subject: s4-net: Use new Net() object in net export keytab. --- source4/libnet/py_net.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/libnet') 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 2008 + Copyright (C) Jelmer Vernooij 2008-2010 Copyright (C) Kamen Mazdrashki 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; -- cgit