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:
committed by
Gerald (Jerry) Carter
parent
b6352a3c46
commit
22855c7aae
@@ -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() :) */
|
||||
|
||||
Reference in New Issue
Block a user