Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
304b07fb
Commit
304b07fb
authored
Oct 30, 2015
by
johan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTLS connection shall not be closed by server after the handshake
parent
5028a29b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/crypto/dtls_srtp.c
src/crypto/dtls_srtp.c
+5
-1
No files found.
src/crypto/dtls_srtp.c
View file @
304b07fb
...
...
@@ -534,7 +534,11 @@ static int ms_dtls_srtp_rtp_process_on_receive(struct _RtpTransportModifier *t,
ms_dtls_srtp_check_channels_status
(
ctx
);
}
}
ret
=
ssl_close_notify
(
&
(
ctx
->
rtp_dtls_context
->
ssl
)
);
if
(
ctx
->
role
!=
MSDtlsSrtpRoleIsServer
)
{
/* close the connection only if we are client, if we are server, the client may ask again for last packets */
ret
=
ssl_close_notify
(
&
(
ctx
->
rtp_dtls_context
->
ssl
)
);
}
}
return
0
;
}
...
...
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