]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CHAOS: cleanup possible null vars on msg alloc failure 44/2344/2
authorScott Griepentrog <scott@griepentrog.com>
Wed, 2 Mar 2016 17:17:54 +0000 (11:17 -0600)
committerScott Griepentrog <sgriepentrog@digium.com>
Wed, 2 Mar 2016 18:00:37 +0000 (12:00 -0600)
commit1ea7a5a774ee7c70325e1be37afb403dac1abbc3
tree167f6ca70ff2cca6511b9ac6d1ddc095da6e0e0c
parentd1495bc0ebed86d322488bed647b43aba0ae9b1f
CHAOS: cleanup possible null vars on msg alloc failure

In message.c, if msg_alloc fails to init the string field,
vars may be null, so use a null tolerant cleanup.

In res_pjsip_messaging.c, if msg_data_create fails, mdata
will be null, so use a null tolerant cleanup.

ASTERISK-25323

Change-Id: Ic2d55c2c3750d5616e2a05ea92a19c717507ff56
main/message.c
res/res_pjsip_messaging.c