]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/rlm_stg.c
rlm_stg is now "thread-unsafe".
[stg.git] / projects / rlm_stg / rlm_stg.c
index 4030669533f3a9f784f5143edb109a031a7f33b6..98c6a02ae5ef7c368fcde6c15e540ceea274d523 100644 (file)
@@ -70,6 +70,7 @@ static size_t toReply(STG_RESULT result, REQUEST* request)
     size_t count = 0;
 
     count += toVPS(result.modify, &request->config_items);
+    pairfree(&request->reply->vps);
     count += toVPS(result.reply, &request->reply->vps);
 
     deletePairs(result.modify);
@@ -384,7 +385,7 @@ static int stg_detach(void* instance)
 module_t rlm_stg = {
     RLM_MODULE_INIT,
     "stg",
-    RLM_TYPE_THREAD_SAFE, /* type */
+    RLM_TYPE_THREAD_UNSAFE, /* type */
     stg_instantiate,      /* instantiation */
     stg_detach,           /* detach */
     {