Simplify pairvalidate
authorAlan T. DeKok <aland@freeradius.org>
Sat, 2 Nov 2013 00:28:55 +0000 (20:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 2 Nov 2013 00:32:47 +0000 (20:32 -0400)
commita694ccc7ab23b42559c51d9a92766c30e9204705
tree953a1088c0374411a817ca192f78be97f63263b4
parent01bec02a396043a12f4244f174fadefb90a456c6
Simplify pairvalidate

- sort each input list
- walk down both lists in sync
  - if the two attributes are of different types, die
  - if the two attributes don't compare equal, die

  - go to the next attribute in each list
  - if both are NULL, we're done
  - if one is NULL and the other isn't, die
src/lib/valuepair.c