chan_dahdi: Fix segfault dereferencing a NULL tech_pvt.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 29 Oct 2012 15:56:13 +0000 (15:56 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 29 Oct 2012 15:56:13 +0000 (15:56 +0000)
commite2702177a436339b622b430f2c93dde65a68a5a0
treeab7dbf5f446995cbd37fcd3ddc89f80b89f786f6
parent2c3638df989cb04339a3effce5e97fb1ba6fc213
chan_dahdi: Fix segfault dereferencing a NULL tech_pvt.

The tech support customer was using the AMI Redirect action shortly after
a call was placed.  While the channel tried to do an ast_read(), the
masquerade resulting from the channel redirect took place.  The masquerade
in the middle of the ast_read() resulted in the segfault.

(closes issue AST-1025)
Reported by: Trey Blancher
Patches:
      jira_ast_1025_v1.8_v2.patch (license #5621) patch uploaded by rmudgett
........

Merged revisions 375361 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 375362 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 375363 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c