]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stringfields: Fix bug in ast_string_fields_copy.
authorCorey Farrell <git@cfware.com>
Wed, 19 Nov 2014 19:30:13 +0000 (19:30 +0000)
committerCorey Farrell <git@cfware.com>
Wed, 19 Nov 2014 19:30:13 +0000 (19:30 +0000)
commitf55b7ce116e8559b2acd42cc544a2b0df9c0a058
tree5541eee748fc6c16a0510c928f5ab1c76567964d
parentc8b9b160933672febf9fee1bca1c517d4fe0d463
stringfields: Fix bug in ast_string_fields_copy.

ast_string_fields_copy relies on the fact that
__ast_string_field_release_active never previously
zeroed pool->used, so keeping the existing pointer
was "ok".  Now that existing pools can be reset to
'empty', it is important to set each field to
__ast_string_field_empty after releasing the memory.

ASTERISK-24535 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4186/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@428272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stringfields.h