1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r7955: we should not free a struct which is passed as a parameter, to a function

the caller should free it

this fixed a double free bug noticed by
Дейтер Александр Валериевич <tiamat@komi.mts.ru> 

metze
This commit is contained in:
Stefan Metzmacher 2005-06-27 19:32:52 +00:00 committed by Gerald (Jerry) Carter
parent fd3f463643
commit ee1a5d5419

View File

@ -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);