Look for duplicate module definitions.
authorAlan T. DeKok <aland@freeradius.org>
Sun, 13 Mar 2011 09:02:33 +0000 (10:02 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 13 Mar 2011 09:02:33 +0000 (10:02 +0100)
commitc31ab5d05c023d647899bb5410083ca57d05a552
treec4a39bd1fb5d8a93c309ec6ac83c6cb48a758830
parent8f5f36452d233dcc96d6f1847ef141c4017cbee5
Look for duplicate module definitions.

Doing an O(N^2) search over the modules{} section.  If the same module
is defined twice, print an error detailing *both* locations where it
occurs, and exit.

This helps prevent broken configurations by disallowing the server
from loading two conflicting module definitions
src/main/modules.c