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:
parent
bfc4fe4012
commit
139e2cbb13
@ -293,7 +293,7 @@ static NTSTATUS printer_list_traverse(printer_list_trv_fn_t *fn,
|
||||
}
|
||||
|
||||
ret = db->traverse(db, fn, private_data);
|
||||
if (ret != 0) {
|
||||
if (ret < 0) {
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user