diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-01 20:40:27 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-09 18:59:19 +0100 |
commit | 23c0ae74523c5d35e0c9b41d6a7381a72bb7f6ec (patch) | |
tree | b513fe2c37632ea9782782285c08eb95d0d44500 /source4/lib/ldb/tools | |
parent | ff7dff6ef06c5327f5f3b01572f6bae88e36c4df (diff) | |
download | samba-23c0ae74523c5d35e0c9b41d6a7381a72bb7f6ec.tar.gz samba-23c0ae74523c5d35e0c9b41d6a7381a72bb7f6ec.tar.bz2 samba-23c0ae74523c5d35e0c9b41d6a7381a72bb7f6ec.zip |
ldb:ldbsearch tool - simplify error code return
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r-- | source4/lib/ldb/tools/ldbsearch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c index 3c11fe666e..f68a4bf31d 100644 --- a/source4/lib/ldb/tools/ldbsearch.c +++ b/source4/lib/ldb/tools/ldbsearch.c @@ -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); |