From 9bf7217aa21e4d11fa40e7bdc6cc69ea82ff83f0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Jun 2005 19:32:52 +0000 Subject: r7955: we should not free a struct which is passed as a parameter, to a function the caller should free it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this fixed a double free bug noticed by Дейтер Александр Валериевич   metze (This used to be commit ee1a5d5419f4d79af5c447a6b397a0f4dc89310a) --- source4/nbt_server/dgram/request.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source4/nbt_server') diff --git a/source4/nbt_server/dgram/request.c b/source4/nbt_server/dgram/request.c index f59193bec5..8ccdeabf71 100644 --- a/source4/nbt_server/dgram/request.c +++ b/source4/nbt_server/dgram/request.c @@ -72,7 +72,6 @@ NTSTATUS nbtd_dgram_setup(struct nbtd_interface *iface, const char *bind_address if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("Failed to bind to %s:%d - %s\n", iface->bcast_address, lp_dgram_port(), nt_errstr(status))); - talloc_free(iface); return status; } @@ -87,7 +86,6 @@ NTSTATUS nbtd_dgram_setup(struct nbtd_interface *iface, const char *bind_address if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("Failed to bind to %s:%d - %s\n", bind_address, lp_dgram_port(), nt_errstr(status))); - talloc_free(iface); return status; } dgram_set_incoming_handler(iface->dgmsock, dgram_request_handler, iface); -- cgit