diff options
author | Jeremy Allison <jra@samba.org> | 2008-11-19 15:06:05 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-11-19 15:06:05 -0800 |
commit | 804e63909bc3c9e4e2ca67f67eb56a1422f85fba (patch) | |
tree | 32a567b8ecfbafbe5938fd9a99a3565c2eeb77e6 /source3/rpc_parse/parse_prs.c | |
parent | 31a8c4df1305b63729e49a61e27bc9e1825af0d0 (diff) | |
parent | f9d691d9d808ec2f91f3f469fe2201b0909a8552 (diff) | |
download | samba-804e63909bc3c9e4e2ca67f67eb56a1422f85fba.tar.gz samba-804e63909bc3c9e4e2ca67f67eb56a1422f85fba.tar.bz2 samba-804e63909bc3c9e4e2ca67f67eb56a1422f85fba.zip |
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Diffstat (limited to 'source3/rpc_parse/parse_prs.c')
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index a0d3ed7397..acc0cc88ef 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -1056,39 +1056,6 @@ bool prs_buffer5(bool charmode, const char *name, prs_struct *ps, int depth, BUF } /****************************************************************** - Stream a "not" unicode string, length/buffer specified separately, - in byte chars. String is in little-endian format. - ********************************************************************/ - -bool prs_regval_buffer(bool charmode, const char *name, prs_struct *ps, int depth, REGVAL_BUFFER *buf) -{ - char *p; - char *q = prs_mem_get(ps, buf->buf_len); - if (q == NULL) - return False; - - if (UNMARSHALLING(ps)) { - if (buf->buf_len > buf->buf_max_len) { - return False; - } - if ( buf->buf_max_len ) { - buf->buffer = PRS_ALLOC_MEM(ps, uint16, buf->buf_max_len); - if ( buf->buffer == NULL ) - return False; - } else { - buf->buffer = NULL; - } - } - - p = (char *)buf->buffer; - - dbg_rw_punival(charmode, name, depth, ps, q, p, buf->buf_len/2); - ps->data_offset += buf->buf_len; - - return True; -} - -/****************************************************************** Stream a string, length/buffer specified separately, in uint8 chars. ********************************************************************/ |