From: Volker Lendecke Date: Wed, 27 Jan 2021 08:49:33 +0000 (+0100) Subject: librpc: Simplify dcesrv_check_or_create_context() X-Git-Tag: tevent-0.11.0~1872 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d512a099a7f80893ba8fbbff81e83b67dc08301;p=thirdparty%2Fsamba.git 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 --- 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 */