diff options
author | Volker Lendecke <vl@samba.org> | 2021-01-27 09:49:33 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2021-01-28 16:58:35 +0000 |
commit | 9d512a099a7f80893ba8fbbff81e83b67dc08301 (patch) | |
tree | 686da9d07a8e6418c348e4ee8d4b37ea3f71793d /librpc | |
parent | 38ebfe2e1f16909700c60281f28d374448f0b801 (diff) | |
download | samba-9d512a099a7f80893ba8fbbff81e83b67dc08301.tar.gz |
librpc: Simplify dcesrv_check_or_create_context()
Use ndr_syntax_id_buf_string(), avoid a talloc/talloc_free
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/dcesrv_core.c | 7 |
1 files 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 */ |