mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
cmdline:burn: '-U' does not imply secrets without '%'
We return true from this function when a secret has been erased, and were accidentally treating as if it had secrets. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15671 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
This commit is contained in:
parent
7fb38aee12
commit
f3b240da5c
@ -182,9 +182,11 @@ bool samba_cmdline_burn(int argc, char *argv[])
|
||||
|
||||
if (is_user) {
|
||||
q = strchr_m(p, '%');
|
||||
if (q != NULL) {
|
||||
p = q;
|
||||
if (q == NULL) {
|
||||
/* -U without '%' has no secret */
|
||||
continue;
|
||||
}
|
||||
p = q;
|
||||
} else {
|
||||
p += ulen;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user