Merge "Fix remove_uidiface_info failing on first entry"

This commit is contained in:
Geremy Condra 2013-06-18 21:43:52 +00:00 committed by Android (Google) Code Review
commit 1791cb0001
1 changed files with 1 additions and 1 deletions

View File

@ -2435,7 +2435,7 @@ _resolv_get_pids_associated_interface(int pid, char* buff, int buffLen)
static int
_remove_uidiface_info_locked(int uid_start, int uid_end) {
struct resolv_uidiface_info* result = _res_uidiface_list.next;
struct resolv_uidiface_info* prev = NULL;
struct resolv_uidiface_info* prev = &_res_uidiface_list;
while (result != NULL && result->uid_start != uid_start && result->uid_end != uid_end) {
prev = result;