mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ldb:ldbsearch tool - simplify error code return
This commit is contained in:
parent
ff7dff6ef0
commit
23c0ae7452
@ -306,9 +306,7 @@ int main(int argc, const char **argv)
|
||||
if (options->interactive) {
|
||||
char line[1024];
|
||||
while (fgets(line, sizeof(line), stdin)) {
|
||||
if (do_search(ldb, basedn, options, line, attrs) == -1) {
|
||||
ret = -1;
|
||||
}
|
||||
ret = do_search(ldb, basedn, options, line, attrs);
|
||||
}
|
||||
} else {
|
||||
ret = do_search(ldb, basedn, options, expression, attrs);
|
||||
|
Loading…
Reference in New Issue
Block a user