Bridging: Don't lock NULL bridges
authorKinsey Moore <kmoore@digium.com>
Mon, 28 Apr 2014 20:07:37 +0000 (20:07 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 28 Apr 2014 20:07:37 +0000 (20:07 +0000)
commitf7caf4e249af1f1cecf4d318c59e762597631811
tree5060b162b1cccf84bf2a006495c5b7fa0e3fac72
parent7dd64ff993261da54d96a320ea261c32b622d9b1
Bridging: Don't lock NULL bridges

When bridge locking was added for bridge snapshot creation, some
locations where bridge locking was added were not guaranteed to
actually have a bridge and locking NULL AO2 objects tends to cause
segfaults. This ensures that NULL bridges aren't locked.
........

Merged revisions 413073 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/bridge.c
main/bridge_basic.c