protect against null deref

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7264 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-01-17 06:27:42 +00:00
parent 61de2f548d
commit 64aadd90b1

View File

@ -140,7 +140,7 @@ SWITCH_STANDARD_APP(bcast_function)
continue;
}
if (!SWITCH_READ_ACCEPTABLE(status)) {
if (!SWITCH_READ_ACCEPTABLE(status) || !read_frame) {
goto fail;
}