]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Fix truncation of persisted SUBSCRIBE packet
authorSean Bright <sean.bright@gmail.com>
Thu, 14 Jan 2021 14:47:21 +0000 (09:47 -0500)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 18 Jan 2021 17:30:08 +0000 (11:30 -0600)
commitfb42b603261aa73cf68ea84e9f9478f588604547
tree2b9e3e810baa62efdaab9eef5f2d66964de902e5
parent9c5687092953604821f16c417815b9254f340f87
res_pjsip_pubsub: Fix truncation of persisted SUBSCRIBE packet

The last argument to ast_copy_string() is the buffer size, not the
number of characters, so we add 1 to avoid stamping out the final \n
in the persisted SUBSCRIBE message.

Change-Id: I019b78942836f57965299af15d173911fcead5b2
res/res_pjsip_pubsub.c