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_3_0_0_beta0~1620 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9db4e7213a9dbbc8e1f5eeee599ae837fcefc743;p=thirdparty%2Ffreeradius-server.git Catch possible NULL pointer on editing attribute list --- diff --git a/src/main/evaluate.c b/src/main/evaluate.c index fc864241c31..cbef0e314bc 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.