1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r14226: Fix Coverity bug # 109

This commit is contained in:
Volker Lendecke 2006-03-12 00:03:00 +00:00 committed by Gerald (Jerry) Carter
parent 7405228751
commit e9a63e3b35

View File

@ -835,8 +835,10 @@ static WERROR restore_registry_key ( REGISTRY_KEY *krecord, const char *fname )
/* get the rootkey from the regf file and then load the tree
via recursive calls */
if ( !(rootkey = regfio_rootkey( regfile )) )
if ( !(rootkey = regfio_rootkey( regfile )) ) {
regfio_close( regfile );
return WERR_REG_FILE_INVALID;
}
result = reg_load_tree( regfile, krecord->name, rootkey );