SQ fss: _fss_ExposeShadowCopySet error path cleanup
authorDavid Disseldorp <ddiss@samba.org>
Mon, 28 Jan 2013 18:17:28 +0000 (19:17 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 14 May 2013 07:03:27 +0000 (09:03 +0200)
source3/rpc_server/fss/srv_fss_agent.c

index b546d649c3894c71985204f34d2bfa5dea50df05..8cdf74b25365d6886077d17be63cd8f591b5918b 100644 (file)
@@ -1064,14 +1064,14 @@ uint32_t _fss_ExposeShadowCopySet(struct pipes_struct *p,
                DEBUG(1, ("failed to store fss server state: %s\n",
                          nt_errstr(status)));
        }
-       ret = 0;
-err_out:
        talloc_free(tmp_ctx);
-       return ret;
+       return 0;
+
 err_cancel:
        smbconf_transaction_cancel(rconf_ctx);
-       talloc_free(tmp_ctx);
        unbecome_root();
+err_out:
+       talloc_free(tmp_ctx);
        return ret;
 }