smbpasswd: always free frame.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:28:31 +0000 (04:58 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:28:31 +0000 (04:58 +0930)
We're about to exit, so it doesn't really matter, but might as well
unify the paths.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/utils/smbpasswd.c

index bc3aaff54ec94be41dd4a4d980aae0c6ce5ba826..368998344484541caad23fad5736aa580446aff5 100644 (file)
@@ -602,10 +602,10 @@ int main(int argc, char **argv)
 
        if (local_flags & LOCAL_AM_ROOT) {
                secrets_init();
-               return process_root(local_flags);
-       } 
-
-       ret = process_nonroot(local_flags);
+               ret = process_root(local_flags);
+       } else {
+               ret = process_nonroot(local_flags);
+       }
        TALLOC_FREE(frame);
        return ret;
 }