diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2019-11-14 14:16:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 14:16:49 +0000 |
commit | 0d985568013377c332a7574fd2935339b583d9d4 (patch) | |
tree | dd48d53831092aa371b8e9b71eaf5675965160ec /streaming | |
parent | 4207f1797ebaf295aa954858d27bfbbeacaf5081 (diff) |
stream_ssl_slave: Fix socket overwrite (#7306)
When a slave had SSL activate for stream and local access it was overwritten the addresses,
this PR fixes this problem that was not allowed the stream works 100%
Diffstat (limited to 'streaming')
-rw-r--r-- | streaming/rrdpush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c index 59913c24b5..e6d2aca0a7 100644 --- a/streaming/rrdpush.c +++ b/streaming/rrdpush.c @@ -1079,8 +1079,8 @@ static int rrdpush_receive(int fd info("STREAM %s [receive from [%s]:%s]: initializing communication...", host->hostname, client_ip, client_port); #ifdef ENABLE_HTTPS - host->ssl.conn = ssl->conn; - host->ssl.flags = ssl->flags; + host->stream_ssl.conn = ssl->conn; + host->stream_ssl.flags = ssl->flags; if(send_timeout(ssl,fd, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT), 0, 60) != strlen(START_STREAMING_PROMPT)) { #else if(send_timeout(fd, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT), 0, 60) != strlen(START_STREAMING_PROMPT)) { |