Do not lock the 'sessions' container, lock the allocated 'session'.
authorEliel C. Sardanons <eliels@gmail.com>
Wed, 13 May 2009 15:02:10 +0000 (15:02 +0000)
committerEliel C. Sardanons <eliels@gmail.com>
Wed, 13 May 2009 15:02:10 +0000 (15:02 +0000)
commit8c5643b2f9c20a3467e059d1365464af81288575
tree4b8bf3453f2cbf9873c82046a95e699ca1dbcad5
parent1179ecf1657782e55b3e60b7515345823ec912ed
Do not lock the 'sessions' container, lock the allocated 'session'.

There was a typo in the structure being locked, and we were locking the
'sessions' container instead of the 'session' structure thar we are modifying.
Reported by seanbright on #asterisk-dev, thanks!

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