summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/regfio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c
index 32e166a1223..60c865d4d22 100644
--- a/source3/registry/regfio.c
+++ b/source3/registry/regfio.c
@@ -552,7 +552,8 @@ static REGF_HBIN* read_hbin_block( REGF_FILE *file, off_t offset )
if ( !prs_uint32( "header", &hbin->ps, 0, &header ) )
return NULL;
- SMB_ASSERT( record_size != 0 );
+ if (record_size == 0)
+ return NULL;
if ( record_size & 0x80000000 ) {
/* absolute_value(record_size) */