pkcs5: Add missing break statements when checking crypto primitives
[strongswan.git] / scripts / crypt_burn.c
index d26a3d0..8101f9c 100644 (file)
@@ -27,7 +27,7 @@ int main(int argc, char *argv[])
 
 
        library_init(NULL);
-       lib->plugins->load(lib->plugins, NULL, PLUGINS);
+       lib->plugins->load(lib->plugins, PLUGINS);
        atexit(library_deinit);
 
        printf("loaded: %s\n", PLUGINS);
@@ -89,6 +89,7 @@ int main(int argc, char *argv[])
                                break;
                        }
                }
+               aead->destroy(aead);
        }
        else
        {
@@ -120,6 +121,7 @@ int main(int argc, char *argv[])
                                break;
                        }
                }
+               crypter->destroy(crypter);
        }
        return 0;
 }