summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-15 20:51:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:02 -0500
commitc8e02022772c8c29548451dc93c895daa492f100 (patch)
treec3ca4d7d5fe71bf8b8095b0747adfdaddca7f0d9
parent76f3e5a90f768f0d9f88512e47edb7aac321985c (diff)
downloadsamba-c8e02022772c8c29548451dc93c895daa492f100.tar.gz
samba-c8e02022772c8c29548451dc93c895daa492f100.tar.bz2
samba-c8e02022772c8c29548451dc93c895daa492f100.zip
r5809: try to catch NULL pointers during developerment for rpcbuf_move()
(This used to be commit f9e9a42c0734129100e1cdd4a9ad1539b65ab5bc)
-rw-r--r--source3/rpc_parse/parse_buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_buffer.c b/source3/rpc_parse/parse_buffer.c
index 41064572d9..ea72df8db4 100644
--- a/source3/rpc_parse/parse_buffer.c
+++ b/source3/rpc_parse/parse_buffer.c
@@ -168,8 +168,7 @@ BOOL rpcbuf_alloc_size(RPC_BUFFER *buffer, uint32 buffer_size)
void rpcbuf_move(RPC_BUFFER *src, RPC_BUFFER **dest)
{
- if ( !src )
- return;
+ SMB_ASSERT( src != NULL );
prs_switch_type(&src->prs, MARSHALL);
if(!prs_set_offset(&src->prs, 0))