Fix setting of error code in error path.
authorMichael Adam <obnox@samba.org>
Wed, 2 Jan 2008 23:52:55 +0000 (00:52 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 3 Jan 2008 00:29:43 +0000 (01:29 +0100)
Michael

source/libnet/libnet_conf.c

index 144026dbb5d1bf2b6ec30dd68497e628f09fa43c..514fd245ad881e11edbbf332db97aa6909ae507c 100644 (file)
@@ -68,6 +68,8 @@ static WERROR libnet_smbconf_reg_open_service_key(TALLOC_CTX *ctx,
 
        if (!(token = registry_create_admin_token(ctx))) {
                DEBUG(1, ("Error creating admin token\n"));
+               /* what is the appropriate error code here? */
+               werr = WERR_CAN_NOT_COMPLETE;
                goto done;
        }