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

r6218: * fix a segv in EnumPrinters():rpc_buffer_alloc when the caller does not provide an

RPC_BUFFER in the request

* add initial (but wire untested) support for RegRestoreKey()
This commit is contained in:
Gerald Carter
2005-04-05 17:49:16 +00:00
committed by Gerald (Jerry) Carter
parent b6352a3c46
commit 22855c7aae
5 changed files with 149 additions and 46 deletions

View File

@@ -134,6 +134,11 @@ BOOL rpcbuf_alloc_size(RPC_BUFFER *buffer, uint32 buffer_size)
uint32 extra_space;
uint32 old_offset;
/* if we don't need anything. don't do anything */
if ( buffer_size == 0x0 )
return True;
ps= &buffer->prs;
/* damn, I'm doing the reverse operation of prs_grow() :) */