From 9d512a099a7f80893ba8fbbff81e83b67dc08301 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 27 Jan 2021 09:49:33 +0100 Subject: [PATCH] librpc: Simplify dcesrv_check_or_create_context() Use ndr_syntax_id_buf_string(), avoid a talloc/talloc_free Signed-off-by: Volker Lendecke Reviewed-by: Samuel Cabrero --- librpc/rpc/dcesrv_core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c index ccfc01a57d9..0ef85e10df3 100644 --- a/librpc/rpc/dcesrv_core.c +++ b/librpc/rpc/dcesrv_core.c @@ -1362,9 +1362,10 @@ static NTSTATUS dcesrv_check_or_create_context(struct dcesrv_call_state *call, iface = find_interface_by_uuid(call->conn->endpoint, &uuid, if_version); if (iface == NULL) { - char *uuid_str = GUID_string(call, &uuid); - DEBUG(2,("Request for unknown dcerpc interface %s/%d\n", uuid_str, if_version)); - talloc_free(uuid_str); + struct ndr_syntax_id_buf buf; + DBG_NOTICE("Request for unknown dcerpc interface %s\n", + ndr_syntax_id_buf_string( + &ctx->abstract_syntax, &buf)); /* * We report this only via ack->result */ -- 2.47.3