From 94d939820226c13ba30b2af35876744e09c96791 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 6 Oct 2014 18:13:39 +0200 Subject: [PATCH] vici: Return a success result for the clear-creds command Even if the command actually can't fail, this looks more aligned to similar commands. --- src/libcharon/plugins/vici/vici_cred.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libcharon/plugins/vici/vici_cred.c b/src/libcharon/plugins/vici/vici_cred.c index cc6434b62..d4c02de6d 100644 --- a/src/libcharon/plugins/vici/vici_cred.c +++ b/src/libcharon/plugins/vici/vici_cred.c @@ -270,13 +270,10 @@ CALLBACK(load_shared, vici_message_t*, CALLBACK(clear_creds, vici_message_t*, private_vici_cred_t *this, char *name, u_int id, vici_message_t *message) { - vici_builder_t *builder; - this->creds->clear(this->creds); lib->credmgr->flush_cache(lib->credmgr, CERT_ANY); - builder = vici_builder_create(); - return builder->finalize(builder); + return create_reply(NULL); } static void manage_command(private_vici_cred_t *this,