1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-07 09:49:30 +03:00

s3-epmapper: Added a cleanup function.

This commit is contained in:
Andreas Schneider
2011-03-14 14:49:51 +01:00
committed by Simo Sorce
parent da718a5961
commit 661ac49794
2 changed files with 45 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "../libcli/security/security.h"
#include "librpc/gen_ndr/ndr_epmapper.h"
#include "librpc/gen_ndr/srv_epmapper.h"
#include "srv_epmapper.h"
typedef uint32_t error_status_t;
@ -219,6 +220,18 @@ static bool is_priviledged_pipe(struct auth_serversupplied_info *info) {
return true;
}
void srv_epmapper_cleanup(void)
{
struct dcesrv_endpoint *ep;
for (ep = endpoint_table;
ep != NULL;
ep = endpoint_table) {
DLIST_REMOVE(endpoint_table, ep);
TALLOC_FREE(ep);
}
}
/*
* epm_Insert
*

View File

@ -0,0 +1,32 @@
/*
* Unix SMB/CIFS implementation.
*
* Endpoint server for the epmapper pipe
*
* Copyright (C) 2010-2011 Andreas Schneider <asn@samba.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SRV_EPMAPPER_H_
#define _SRV_EPMAPPER_H_
/**
* @brief Cleanup memory and other stuff.
*/
void srv_epmapper_cleanup(void);
#endif /*_SRV_EPMAPPER_H_ */
/* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */