Fix crashes in res_odbc.
authorMark Michelson <mmichelson@digium.com>
Thu, 18 Dec 2008 19:34:33 +0000 (19:34 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 18 Dec 2008 19:34:33 +0000 (19:34 +0000)
commit221694480c1d9b99a0d24890860b8bbbc7733975
tree236005663bff0012f0da17ed6caf8b5dd301e2fc
parent50a25ac8474d7900ba59a68ed4fd942074082435
Fix crashes in res_odbc.

The variable "class" was being set NULL just prior to
being dereferenced in an ao2_link call. I have moved
the setting of the variable to NULL until after the
ao2_link call.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_odbc.c