summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules.c b/src/modules.c
index b8aff99cc..91d4105b4 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -738,6 +738,10 @@ int prepForUnload(Module * m)
return MOD_ERR_PARAMS;
}
+ if (m->type == PROTOCOL) {
+ return MOD_ERR_NOUNLOAD; /* you cant unload protocol modules */
+ }
+
/* Kill any active callbacks this module has */
moduleCallBackPrepForUnload(m->name);