From 36931e7ac1180908c152ad2e8be38219d909eb94 Mon Sep 17 00:00:00 2001 From: Johnny Date: Tue, 8 Mar 2022 18:10:57 +0800 Subject: [PATCH] fix crash in edge mode. --- trunk/src/app/srs_app_edge.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/trunk/src/app/srs_app_edge.cpp b/trunk/src/app/srs_app_edge.cpp index 146c2269b68..7b05927fce9 100644 --- a/trunk/src/app/srs_app_edge.cpp +++ b/trunk/src/app/srs_app_edge.cpp @@ -631,12 +631,8 @@ srs_error_t SrsEdgeIngester::process_publish_message(SrsCommonMessage* msg, stri SrsAutoFree(SrsPacket, pkt); // RTMP 302 redirect - if (dynamic_cast(pkt)) { - SrsCallPacket* call = dynamic_cast(pkt); - if (!call->arguments->is_object()) { - return err; - } - + SrsCallPacket* call = dynamic_cast(pkt); + if (call && call->arguments && call->arguments->is_object()) { SrsAmf0Any* prop = NULL; SrsAmf0Object* evt = call->arguments->to_object();