[Asterisk-code-review] res_pjsip_history.c: Fix to stop SIGSEGV when IPv6 addresses are enco... (asterisk[master])
Friendly Automation
asteriskteam at digium.com
Mon May 11 16:26:31 CDT 2020
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14403 )
Change subject: res_pjsip_history.c: Fix to stop SIGSEGV when IPv6 addresses are encountered.
......................................................................
res_pjsip_history.c: Fix to stop SIGSEGV when IPv6 addresses are encountered.
Changed source and destination address fields in struct
pjsip_history_entry so that they are long enough to hold an IPv6
address.
ASTERISK-28854
Change-Id: Id65bb9aa961e9ecbcb500815e18170f774e34d3e
---
M res/res_pjsip_history.c
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved
Sean Bright: Looks good to me, but someone else must approve
Friendly Automation: Approved for Submit
diff --git a/res/res_pjsip_history.c b/res/res_pjsip_history.c
index 10bcd96..e4b784d 100644
--- a/res/res_pjsip_history.c
+++ b/res/res_pjsip_history.c
@@ -64,9 +64,9 @@
/*! \brief Time the packet was transmitted/received */
struct timeval timestamp;
/*! \brief Source address */
- pj_sockaddr_in src;
+ pj_sockaddr src;
/*! \brief Destination address */
- pj_sockaddr_in dst;
+ pj_sockaddr dst;
/*! \brief Memory pool used to allocate \c msg */
pj_pool_t *pool;
/*! \brief The actual SIP message */
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14403
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Id65bb9aa961e9ecbcb500815e18170f774e34d3e
Gerrit-Change-Number: 14403
Gerrit-PatchSet: 3
Gerrit-Owner: Roger James <roger at beardandsandals.co.uk>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200511/27fb2a9a/attachment.html>
More information about the asterisk-code-review
mailing list