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:
parent
534a445df4
commit
d89f9d404f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user