1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

r2234: Tridge, this is a patch to allow people to set the REF_ALLOC flag on

a dcerpc_pipe structure as we discussed this morning.
(This used to be commit 79969dc8daf5fdaacd26135a200ecec0b4d7663c)
This commit is contained in:
Tim Potter 2004-09-06 10:29:18 +00:00 committed by Gerald (Jerry) Carter
parent 65b5a2297c
commit aeaec31533
2 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,10 @@ static struct ndr_pull *ndr_pull_init_flags(struct dcerpc_pipe *p, DATA_BLOB *bl
ndr->flags |= LIBNDR_FLAG_PAD_CHECK;
}
if (p->flags & DCERPC_NDR_REF_ALLOC) {
ndr->flags |= LIBNDR_FLAG_REF_ALLOC;
}
return ndr;
}

View File

@ -104,6 +104,9 @@ struct dcerpc_pipe {
/* check incoming pad bytes */
#define DCERPC_DEBUG_PAD_CHECK (1<<12)
/* set LIBNDR_FLAG_REF_ALLOC flag when decoding NDR */
#define DCERPC_NDR_REF_ALLOC (1<<13)
/*
this is used to find pointers to calls
*/