]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_history.c: Fix to stop SIGSEGV when IPv6 addresses are encountered.
authorRoger James <roger@beardandsandals.co.uk>
Sat, 9 May 2020 07:46:51 +0000 (08:46 +0100)
committerKevin Harwell <kharwell@digium.com>
Mon, 11 May 2020 21:49:15 +0000 (16:49 -0500)
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

res/res_pjsip_history.c

index 10bcd961877401423557e3b46af8e4bc1f03c7af..e4b784dca4a8ba5f6e25a484c5aaafae42072eff 100644 (file)
@@ -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 */