git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3-utils: Check return value of secrets_init().
[bbaumbach/samba-autobuild/.git]
/
source3
/
utils
/
smbpasswd.c
diff --git
a/source3/utils/smbpasswd.c
b/source3/utils/smbpasswd.c
index 66c80da618e03b56887567578ec3596c3fef308c..3af7e56f7d4ec5af7a333f693536c273c9c3e45d 100644
(file)
--- a/
source3/utils/smbpasswd.c
+++ b/
source3/utils/smbpasswd.c
@@
-605,7
+605,12
@@
int main(int argc, char **argv)
}
if (local_flags & LOCAL_AM_ROOT) {
- secrets_init();
+ bool ok;
+
+ ok = secrets_init();
+ if (!ok) {
+ return 1;
+ }
ret = process_root(local_flags);
} else {
ret = process_nonroot(local_flags);