diff options
author | Jeremy Allison <jra@samba.org> | 2007-04-29 21:13:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:46 -0500 |
commit | 138668d5d284f7d2496f22c16a99be107cdfc872 (patch) | |
tree | 9bd5fb94a64173bd6a9325a1ecfc7bb4ccf34129 /source3/rpc_parse/parse_ntsvcs.c | |
parent | 571845991e137eb5f166d54c59a9e7efc1d565af (diff) | |
download | samba-138668d5d284f7d2496f22c16a99be107cdfc872.tar.gz samba-138668d5d284f7d2496f22c16a99be107cdfc872.tar.bz2 samba-138668d5d284f7d2496f22c16a99be107cdfc872.zip |
r22577: Change all of parse/*.c to use standard form. Fix some
marshalling bugs.
Jeremy.
(This used to be commit 3df99006f8a52af7cff0fbca1bf16157a8648254)
Diffstat (limited to 'source3/rpc_parse/parse_ntsvcs.c')
-rw-r--r-- | source3/rpc_parse/parse_ntsvcs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_ntsvcs.c b/source3/rpc_parse/parse_ntsvcs.c index ab5f3f75e8..559a9d5ab5 100644 --- a/source3/rpc_parse/parse_ntsvcs.c +++ b/source3/rpc_parse/parse_ntsvcs.c @@ -334,9 +334,13 @@ BOOL ntsvcs_io_r_get_hw_profile_info(const char *desc, NTSVCS_R_GET_HW_PROFILE_I return False; if ( UNMARSHALLING(ps) ) { - r_u->buffer = TALLOC_ARRAY(get_talloc_ctx(), uint8, r_u->buffer_size ); - if (!r_u->buffer) { - return False; + if (r_u->buffer_size) { + r_u->buffer = TALLOC_ARRAY(get_talloc_ctx(), uint8, r_u->buffer_size ); + if (!r_u->buffer) { + return False; + } + } else { + r_u->buffer = NULL; } } |