1
0
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:
Matthias Dieter Wallnöfer 2011-02-01 20:40:27 +01:00
parent ff7dff6ef0
commit 23c0ae7452

View File

@ -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);