Validate availability of json on startup in rlm_rest
authorHerwin Weststrate <herwin@snt.utwente.nl>
Sat, 27 Sep 2014 09:32:16 +0000 (11:32 +0200)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 27 Sep 2014 17:34:47 +0000 (13:34 -0400)
commit79013e7b6388c03fb61049250237bb67a4c4d5d6
tree2c6c7c159c1999f37a0c150f624d236e7779bb7b
parent128b512fe4914395af5605b2c7a9d79757dc8ad5
Validate availability of json on startup in rlm_rest

If the server was compiled without json support and json was requested in rlm_rest, the server would startup without any problem. However, on the first use of the module, an "assert(false)" was triggered.

This patch validates the bevahiour during the startup phase.
src/modules/rlm_rest/rlm_rest.c