From 40a68549b5d4d99c0083f15242aab7516a87871f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 4 Apr 2024 23:48:47 +0200 Subject: relay: set default value of undefined remote options to empty string instead of NULL (issue #2066) This fixes the websocket connection to remote that is not initiated after the successful handshake with the remote relay/api. --- src/plugins/relay/relay-remote.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/relay/relay-remote.c b/src/plugins/relay/relay-remote.c index 12880d3da..080b99ce2 100644 --- a/src/plugins/relay/relay-remote.c +++ b/src/plugins/relay/relay-remote.c @@ -458,7 +458,10 @@ relay_remote_new (const char *name, const char *url, const char *proxy, for (i = 0; i < RELAY_REMOTE_NUM_OPTIONS; i++) { - option[i] = relay_config_create_remote_option (name, i, value[i]); + option[i] = relay_config_create_remote_option ( + name, + i, + (value[i]) ? value[i] : ""); } new_remote = relay_remote_new_with_options (name, option); -- cgit v1.2.3