From eec9e8a052407611df223fec982588e7a2bd7f49 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Nov 2001 03:56:30 +0000 Subject: fix a bunch of places where we can double-free a cli structure (This used to be commit e2ba2383c9f679c076749a8f4fccefc3559e37ec) --- source3/auth/auth_server.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index 628e672608..4608c639eb 100644 --- a/source3/auth/auth_server.c +++ b/source3/auth/auth_server.c @@ -110,8 +110,6 @@ static void free_server_private_data(void **private_data_pointer) struct cli_state **cli = (struct cli_state **)private_data_pointer; if (*cli && (*cli)->initialised) { cli_shutdown(*cli); - - SAFE_FREE(*cli); } } @@ -129,7 +127,6 @@ static void send_server_keepalive(void **private_data_pointer) if (!send_keepalive((*cli)->fd)) { DEBUG( 2, ( "password server keepalive failed.\n")); cli_shutdown(*cli); - SAFE_FREE(*cli); } } } @@ -346,7 +343,6 @@ use this machine as the password server.\n")); if (locally_made_cli) { cli_shutdown(cli); - SAFE_FREE(cli); } return(nt_status); -- cgit