diff --git a/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest.c b/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest.c
index a20522b84a5f27d60ab377632acd6bb08f20bc0e..1b4dd86072ced81dc9c9c01c12d0221be1415dff 100644
--- a/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest.c
+++ b/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest.c
@@ -70,7 +70,7 @@ static bool ext_spamvirustest_validator_load
 const struct sieve_extension_def spamtest_extension = { 
 	"spamtest", 
 	ext_spamvirustest_load, 
-	NULL,
+	ext_spamvirustest_unload,
 	ext_spamvirustest_validator_load, 
 	NULL, NULL, NULL, NULL, NULL,
 	SIEVE_EXT_DEFINE_OPERATION(spamtest_operation), 
@@ -80,7 +80,7 @@ const struct sieve_extension_def spamtest_extension = {
 const struct sieve_extension_def spamtestplus_extension = { 
 	"spamtestplus", 
 	ext_spamvirustest_load,  
-	NULL,
+	ext_spamvirustest_unload,
 	ext_spamvirustest_validator_load, 
 	NULL, NULL, NULL, NULL, NULL,
 	SIEVE_EXT_DEFINE_OPERATION(spamtest_operation), 
@@ -90,7 +90,7 @@ const struct sieve_extension_def spamtestplus_extension = {
 const struct sieve_extension_def virustest_extension = { 
 	"virustest", 
 	ext_spamvirustest_load, 
-	NULL,
+	ext_spamvirustest_unload,
 	ext_spamvirustest_validator_load, 
 	NULL, NULL, NULL, NULL, NULL,
 	SIEVE_EXT_DEFINE_OPERATION(virustest_operation),