Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b0b2faa7
Commit
b0b2faa7
authored
Apr 19, 2007
by
Luca Abeni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an use-after-free bug
Originally committed as revision 8759 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2c6a5e6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ffserver.c
ffserver.c
+4
-1
No files found.
ffserver.c
View file @
b0b2faa7
...
...
@@ -3062,6 +3062,7 @@ static void rtsp_cmd_pause(HTTPContext *c, const char *url, RTSPHeader *h)
static
void
rtsp_cmd_teardown
(
HTTPContext
*
c
,
const
char
*
url
,
RTSPHeader
*
h
)
{
HTTPContext
*
rtp_c
;
char
session_id
[
32
];
rtp_c
=
find_rtp_session_with_url
(
url
,
h
->
session_id
);
if
(
!
rtp_c
)
{
...
...
@@ -3069,13 +3070,15 @@ static void rtsp_cmd_teardown(HTTPContext *c, const char *url, RTSPHeader *h)
return
;
}
pstrcpy
(
session_id
,
sizeof
(
session_id
),
rtp_c
->
session_id
);
/* abort the session */
close_connection
(
rtp_c
);
/* now everything is OK, so we can send the connection parameters */
rtsp_reply_header
(
c
,
RTSP_STATUS_OK
);
/* session ID */
url_fprintf
(
c
->
pb
,
"Session: %s
\r\n
"
,
rtp_c
->
session_id
);
url_fprintf
(
c
->
pb
,
"Session: %s
\r\n
"
,
session_id
);
url_fprintf
(
c
->
pb
,
"
\r\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment