From b88b306db792a76371e3c9eddabb6f45d8a7e534 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 1 Sep 2019 17:33:27 +0200 Subject: Fix builtin backend configuration return code --- builtins.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtins.c b/builtins.c index 1a096d8..d99025d 100644 --- a/builtins.c +++ b/builtins.c @@ -41,21 +41,26 @@ uint64_t backend_defaultpeer_configure(char* key, char* value){ free(default_peer.host); default_peer.host = strdup(value); default_peer.transport = peer_transport_detect; + return 0; } else if(!strcmp(key, "port")){ free(default_peer.port); default_peer.port = strdup(value); + return 0; } else if(!strcmp(key, "protocol")){ free(default_peer_proto); default_peer_proto = strdup(value); + return 0; } else if(!strcmp(key, "framing")){ default_peer.framing = plugin_framing(value); + return 0; } else if(!strcmp(key, "framing-config")){ free(default_peer.framing_config); default_peer.framing_config = strdup(value); + return 0; } return 1; } -- cgit v1.2.3