[Asterisk-code-review] res_pjsip_logger: use the correct pointer when logging tx_messages to... (asterisk[16])

nappsoft asteriskteam at digium.com
Thu Jun 4 01:51:53 CDT 2020


nappsoft has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14459 )


Change subject: res_pjsip_logger: use the correct pointer when logging tx_messages to pcap
......................................................................

res_pjsip_logger: use the correct pointer when logging tx_messages to pcap

When writing tx messages to pcap files, asterisk is using the wrong
pointer resulting in lots of wasited space. This patch fixes it to use
the correct pointer.

ASTERISK-28932 #close

Change-Id: I5b8253dd59a083a2ca2c81f232f1d14d33c6fd23
---
M res/res_pjsip_logger.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/59/14459/1

diff --git a/res/res_pjsip_logger.c b/res/res_pjsip_logger.c
index 8380bd6..957020f 100644
--- a/res/res_pjsip_logger.c
+++ b/res/res_pjsip_logger.c
@@ -286,7 +286,7 @@
 	}
 
 	if (default_logger->log_to_pcap) {
-		pjsip_logger_write_to_pcap(default_logger, tdata->buf.start, (int) (tdata->buf.end - tdata->buf.start),
+		pjsip_logger_write_to_pcap(default_logger, tdata->buf.start, (int) (tdata->buf.cur - tdata->buf.start),
 			NULL, &tdata->tp_info.dst_addr);
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14459
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I5b8253dd59a083a2ca2c81f232f1d14d33c6fd23
Gerrit-Change-Number: 14459
Gerrit-PatchSet: 1
Gerrit-Owner: nappsoft <infos at nappsoft.ch>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200604/2baa7176/attachment.html>


More information about the asterisk-code-review mailing list