summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-21 20:14:32 +0200
committerGünther Deschner <gd@samba.org>2008-04-21 20:21:40 +0200
commitba0bf87d967a9544b9c97525994a43ad5b6f1f60 (patch)
tree6c8d2e1361e54ac8116fd60d56868ff3f9cc3a4a /source3/utils/net.c
parente03a2ad01b26df92c843956e4cd2a46e7d6f1f56 (diff)
downloadsamba-ba0bf87d967a9544b9c97525994a43ad5b6f1f60.tar.gz
net: Add libnetapi context to net's impressive list of globals.
Guenther (This used to be commit 8a5fadf6a183e4e4ccc77283b3ddba0748c6abfb)
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r--source3/utils/net.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index f6851f69da6..c4b31d46b07 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -89,6 +89,7 @@ int opt_testmode = False;
int opt_have_ip = False;
struct sockaddr_storage opt_dest_ip;
bool smb_encrypt;
+struct libnetapi_ctx *netapi_ctx = NULL;
extern bool AllowDebugChange;
@@ -1170,11 +1171,7 @@ static struct functable net_func[] = {
DEBUG(2,("return code = %d\n", rc));
- {
- struct libnetapi_ctx *ctx = NULL;
- libnetapi_getctx(&ctx);
- libnetapi_free(ctx);
- }
+ libnetapi_free(netapi_ctx);
TALLOC_FREE(frame);
return rc;