1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-printing: fix printer_list_traverse()

The tdb traverse function returns the number of elements traversed, or
less than zero on error, printer_list_traverse() is incorrectly checking
for non-zero return.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Mon Dec 20 18:44:41 CET 2010 on sn-devel-104
This commit is contained in:
David Disseldorp 2010-12-20 16:08:02 +01:00 committed by Andreas Schneider
parent bfc4fe4012
commit 139e2cbb13

View File

@ -293,7 +293,7 @@ static NTSTATUS printer_list_traverse(printer_list_trv_fn_t *fn,
} }
ret = db->traverse(db, fn, private_data); ret = db->traverse(db, fn, private_data);
if (ret != 0) { if (ret < 0) {
return NT_STATUS_UNSUCCESSFUL; return NT_STATUS_UNSUCCESSFUL;
} }