From: Alan T. DeKok Date: Tue, 15 Dec 2009 13:23:47 +0000 (+0100) Subject: Catch possible NULL pointer on editing attribute list X-Git-Tag: release_2_1_8~19 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=2092086cfae896534d81ddd41d26aecd7d2eca47;p=freeradius.git Catch possible NULL pointer on editing attribute list --- diff --git a/src/main/evaluate.c b/src/main/evaluate.c index fc86424..cbef0e3 100644 --- a/src/main/evaluate.c +++ b/src/main/evaluate.c @@ -979,7 +979,7 @@ void radius_pairmove(REQUEST *request, VALUE_PAIR **to, VALUE_PAIR *from) found = FALSE; for (j = 0; j < to_count; j++) { - if (edited[j] || !to_list[j]) continue; + if (edited[j] || !to_list[j] || !from_list[i]) continue; /* * Attributes aren't the same, skip them.