diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-12 00:03:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:18 -0500 |
commit | c9f256cb6ca0a51551004580e2422bb23bddbe20 (patch) | |
tree | 9e88534089f1d86e116c7a5d93eddd4fc0e0353c | |
parent | 70c8a21bf8345627f01a69256fbb29672b119b5a (diff) | |
download | samba-c9f256cb6ca0a51551004580e2422bb23bddbe20.tar.gz samba-c9f256cb6ca0a51551004580e2422bb23bddbe20.tar.bz2 samba-c9f256cb6ca0a51551004580e2422bb23bddbe20.zip |
r14226: Fix Coverity bug # 109
(This used to be commit e9a63e3b35822eefbc5e17b6f9a4aab5e8c03074)
-rw-r--r-- | source3/rpc_server/srv_reg_nt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c index 33711d0fac..5ac6738b99 100644 --- a/source3/rpc_server/srv_reg_nt.c +++ b/source3/rpc_server/srv_reg_nt.c @@ -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 ); |