Commit 02490bf3 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

rtmp: Clean up properly if the handshake failed



This prevents memory leaks if this function returns an error.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 6af35443
......@@ -826,7 +826,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
rt->state = STATE_START;
if (rtmp_handshake(s, rt))
return -1;
goto fail;
rt->chunk_size = 128;
rt->state = STATE_HANDSHAKED;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment