]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx.c: Pre-initialize timezone to avoid crash on destroy
authorScott Griepentrog <sgriepentrog@digium.com>
Wed, 22 Jan 2014 22:16:47 +0000 (22:16 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Wed, 22 Jan 2014 22:16:47 +0000 (22:16 +0000)
commit16c27286345e585a99bab7523639c7ffea03c5f8
tree897fe1a2bd58729c78927540a2934264eb7b8002
parent1dd94a2e19b31c333f96af9655d2255a4fe12f43
pbx.c: Pre-initialize timezone to avoid crash on destroy

In ast_build_timing, initialize the timezone value to NULL
in order to avoid deferencing an uninitialized value later
when calling ast_destroy_timing.  The timezone value could
be uninitialized if ast_build_timing were to fail due to a
zero length time string.

(closes issue ASTERISK-22861)
Reported by: Sebastian Murray-Roberts
Review: https://reviewboard.asterisk.org/r/3134/
Patches:
     ast_build_timing-initialize-timezone.patch uploaded by coreyfarrell (license 5909)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@406241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c
utils/extconf.c