From: Roger James Date: Sat, 9 May 2020 07:46:51 +0000 (+0100) Subject: res_pjsip_history.c: Fix to stop SIGSEGV when IPv6 addresses are encountered. X-Git-Tag: 17.5.0-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29910aa451e8b815fdf21d997bffbb662653d261;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_pjsip_history.c b/res/res_pjsip_history.c index 10bcd96187..e4b784dca4 100644 --- a/res/res_pjsip_history.c +++ b/res/res_pjsip_history.c @@ -64,9 +64,9 @@ struct pjsip_history_entry { /*! \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 */