]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip, res_pjsip_session: initialize local variables
authorKevin Harwell <kharwell@digium.com>
Mon, 19 Oct 2020 20:31:14 +0000 (15:31 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 28 Oct 2020 14:33:49 +0000 (09:33 -0500)
commitca8f0b1d21b9c46ebfaf980ba9bf35d6b5339b8a
tree9199be1b07981b6289b3c2b4063840dcb4ba15dd
parent5bc784130e135bb290f5a80ffa2cd774e6707945
res_pjsip, res_pjsip_session: initialize local variables

This patch initializes a couple of local variables to some default values.
Interestingly, in the 'pj_status_t dlg_status' case the value not being
initialized caused memory to grow, and not be recovered, in the off nominal
path (at least on my machine).

Change-Id: I22ee65e1e1bff8efacea8a167c6c8428898523f7
res/res_pjsip/pjsip_transport_management.c
res/res_pjsip_session.c