mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix security scan problems. v6.0.131 (#4100)
1. fix redundant null check, there is no potential risks by the way, just redundant null check. 2. Potential use pointer after free, that's not true. So we can ignore this one, or find a way to make stupid security tool happy. --------- Co-authored-by: winlin <winlinvip@gmail.com>
This commit is contained in:
parent
1f9309ae25
commit
ea7e2c2849
4 changed files with 9 additions and 10 deletions
|
@ -1204,11 +1204,9 @@ srs_error_t SrsHttpStreamServer::hijack(ISrsHttpMessage* request, ISrsHttpHandle
|
|||
}
|
||||
|
||||
// use the handler if exists.
|
||||
if (ph) {
|
||||
if (streamHandlers.find(sid) != streamHandlers.end()) {
|
||||
entry = streamHandlers[sid];
|
||||
*ph = entry->stream;
|
||||
}
|
||||
if (streamHandlers.find(sid) != streamHandlers.end()) {
|
||||
entry = streamHandlers[sid];
|
||||
*ph = entry->stream;
|
||||
}
|
||||
|
||||
// trigger edge to fetch from origin.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue