diff --git a/src/modules/ipops/ipops_pv.c b/src/modules/ipops/ipops_pv.c index b522bb2cb0f..a0f4d242345 100644 --- a/src/modules/ipops/ipops_pv.c +++ b/src/modules/ipops/ipops_pv.c @@ -829,7 +829,7 @@ void sort_srv (struct srv_rdata **plist, int rcount) idx2 = 0; pswap = plist [0]; - for (idx1 = 1; idx1 <= rcount; idx1++) { + for (idx1 = 1; idx1 < rcount; idx1++) { if ((idx1 == rcount) || (pswap->priority != plist [idx1]->priority)) { /********** * o range has more than one element?