diff --git a/modules/proto_tls/proto_tls.c b/modules/proto_tls/proto_tls.c index 17af9a0f5b9..4e6547bccee 100644 --- a/modules/proto_tls/proto_tls.c +++ b/modules/proto_tls/proto_tls.c @@ -561,7 +561,7 @@ static int proto_tls_send(struct socket_info* send_sock, /* attach the write buffer to it */ if (tcp_async_add_chunk(c, buf, len, 1) < 0) { LM_ERR("Failed to add the initial write chunk\n"); - len = -1; /* report an error - let the caller decide what to do */ + rlen = -1; /* report an error - let the caller decide what to do */ } LM_DBG("Successfully started async SSL connection \n");