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:
parent
7405228751
commit
e9a63e3b35
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user