diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-24 23:16:29 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-24 23:16:29 +0000 |
commit | f6acd4867fc56da120d8c0d0d91d5a9cae79d487 (patch) | |
tree | 4fbc5d6485b3097d5d068081682fdb447fb18fde /src | |
parent | ead934a879028ab68c14f645c06d90fa8ced175d (diff) | |
download | s6-networking-f6acd4867fc56da120d8c0d0d91d5a9cae79d487.tar.xz |
Fix sbearssl send_environment protocol
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/sbearssl/sbearssl_send_environment.c | 2 | ||||
-rw-r--r-- | src/stls/stls_send_environment.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_send_environment.c b/src/sbearssl/sbearssl_send_environment.c index a998ee9..22c2dbb 100644 --- a/src/sbearssl/sbearssl_send_environment.c +++ b/src/sbearssl/sbearssl_send_environment.c @@ -137,5 +137,5 @@ int sbearssl_send_environment (br_ssl_engine_context *ctx, sbearssl_handshake_cb } if (buffer_put(&b, "", 1) < 0) return 0 ; - return buffer_putflush(&b, "\0", 2) >= 0 ; + return buffer_putflush(&b, "", 1) >= 0 ; } diff --git a/src/stls/stls_send_environment.c b/src/stls/stls_send_environment.c index ab7fba2..5f04d8f 100644 --- a/src/stls/stls_send_environment.c +++ b/src/stls/stls_send_environment.c @@ -22,7 +22,6 @@ static int add (buffer *b, int h, char const *key, char const *value) return 1 ; } - int stls_send_environment (struct tls *ctx, int fd) { char buf[4096] ; |