1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrement index,

not increment. Michael please check !
Jeremy.
This commit is contained in:
Jeremy Allison 2008-07-01 15:28:13 -07:00
parent 534a445df4
commit d89f9d404f

View File

@ -138,7 +138,7 @@ bool smbconf_reverse_find_in_array(const char *string, char **list,
return false;
}
for (i = num_entries - 1; i >= 0; i++) {
for (i = num_entries - 1; i >= 0; i--) {
if (strequal(string, list[i])) {
if (entry != NULL) {
*entry = i;