Module: kamailio
Branch: master
Commit: 279848dda1fc24428ad3662f6890b6f51fef3518
URL:
https://github.com/kamailio/kamailio/commit/279848dda1fc24428ad3662f6890b6f…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-03-23T15:06:33+01:00
tls: use ip_addr2sbuf instead of (redundant) buf_print_ip
---
Modified: src/modules/tls/tls_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/279848dda1fc24428ad3662f6890b6f…
Patch:
https://github.com/kamailio/kamailio/commit/279848dda1fc24428ad3662f6890b6f…
---
diff --git a/src/modules/tls/tls_server.c b/src/modules/tls/tls_server.c
index d084aaecd3..c8e5852556 100644
--- a/src/modules/tls/tls_server.c
+++ b/src/modules/tls/tls_server.c
@@ -885,10 +885,10 @@ int tls_encode_f(struct tcp_connection *c,
ERR("protocol level error\n");
TLS_ERR(err_src);
memset(ip_buf, 0, sizeof(buf));
- buf_print_ip(ip_buf, &(c->rcv.src_ip), sizeof(ip_buf));
+ ip_addr2sbuf(&(c->rcv.src_ip), ip_buf, sizeof(ip_buf));
ERR("source IP: %s\n", ip_buf);
memset(ip_buf, 0, sizeof(buf));
- buf_print_ip(ip_buf, &(c->rcv.dst_ip), sizeof(ip_buf));
+ ip_addr2sbuf(&(c->rcv.dst_ip), ip_buf, sizeof(ip_buf));
ERR("destination IP: %s\n", ip_buf);
goto error;
@@ -1283,10 +1283,10 @@ int tls_read_f(struct tcp_connection* c, int* flags)
ERR("protocol level error\n");
TLS_ERR(err_src);
memset(ip_buf, 0, sizeof(ip_buf));
- buf_print_ip(ip_buf, &(c->rcv.src_ip), sizeof(ip_buf));
+ ip_addr2sbuf(&(c->rcv.src_ip), ip_buf, sizeof(ip_buf));
ERR("source IP: %s\n", ip_buf);
memset(ip_buf, 0, sizeof(ip_buf));
- buf_print_ip(ip_buf, &(c->rcv.dst_ip), sizeof(ip_buf));
+ ip_addr2sbuf(&(c->rcv.dst_ip), ip_buf, sizeof(ip_buf));
ERR("destination IP: %s\n", ip_buf);
goto error;