Skip to content

Commit

Permalink
Merge pull request #3266 from jes/jes/proto_tls-rlen
Browse files Browse the repository at this point in the history
proto_tls: report error with correct variable

(cherry picked from commit 2cb54ee)
  • Loading branch information
bogdan-iancu committed Dec 7, 2023
1 parent bfdd56f commit 7c8b457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_tls/proto_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,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");
Expand Down

0 comments on commit 7c8b457

Please sign in to comment.