Skip to content

Commit

Permalink
ipops: avoid out of range index when sorting srv pv
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 30, 2017
1 parent f6da027 commit a473811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ipops/ipops_pv.c
Expand Up @@ -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?
Expand Down

0 comments on commit a473811

Please sign in to comment.