1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-18 00:23:50 +03:00

rpc_server3: Remove pipes_struct->session_info

This is a big patch, but all it does is replace all "p->session_info"
with "session_info" after introducing a local variable from
dcesrv_call_session_info(p->dce_call).

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2021-10-04 13:40:02 +02:00
committed by Jeremy Allison
parent 716727c020
commit 8379d8cd53
17 changed files with 471 additions and 197 deletions

View File

@@ -21,6 +21,7 @@
#include "includes.h"
#include "ntdomain.h"
#include "librpc/rpc/dcesrv_core.h"
#include "librpc/gen_ndr/ndr_ntsvcs.h"
#include "librpc/gen_ndr/ndr_ntsvcs_scompat.h"
#include "services/svc_winreg_glue.h"
@@ -126,6 +127,9 @@ _PNP_GetDeviceRegProp
WERROR _PNP_GetDeviceRegProp(struct pipes_struct *p,
struct PNP_GetDeviceRegProp *r)
{
struct dcesrv_call_state *dce_call = p->dce_call;
struct auth_session_info *session_info =
dcesrv_call_session_info(dce_call);
char *ptr;
const char *result;
DATA_BLOB blob;
@@ -148,7 +152,7 @@ WERROR _PNP_GetDeviceRegProp(struct pipes_struct *p,
result = svcctl_lookup_dispname(mem_ctx,
p->msg_ctx,
p->session_info,
session_info,
ptr);
if (result == NULL) {
return WERR_GEN_FAILURE;