diff options
Diffstat (limited to 'source3/registry/reg_init_full.c')
-rw-r--r-- | source3/registry/reg_init_full.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c index 8c834c4abb..e24cb61481 100644 --- a/source3/registry/reg_init_full.c +++ b/source3/registry/reg_init_full.c @@ -93,8 +93,10 @@ bool init_registry( void ) } for ( i=0; reg_hooks[i].keyname; i++ ) { - if (!reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops)) + werr = reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops); + if (!W_ERROR_IS_OK(werr)) { goto fail; + } } if ( DEBUGLEVEL >= 20 ) |