From: Anthony Minessale Date: Tue, 15 Mar 2011 19:29:04 +0000 (-0500) Subject: doh X-Git-Tag: v1.2-rc1~171^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c009dd954f2480ab9dcace77b596ecdd9229363;p=thirdparty%2Ffreeswitch.git doh --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 762bc1aa40..9c85d40c8b 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -564,7 +564,10 @@ static conference_member_t *conference_member_get(conference_obj_t *conference, member = NULL; } - switch_thread_rwlock_rdlock(member->rwlock); + if (member) { + switch_thread_rwlock_rdlock(member->rwlock); + } + switch_mutex_unlock(conference->member_mutex); return member;