Merge remote-tracking branch 'origin/master'

This commit is contained in:
xiongziliang 2018-07-05 18:48:32 +08:00
commit 0237a337a0
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 7dbbfc28b5dce9da4a0b27e63fdd04fbf0e6a691 Subproject commit 8225192d05f058b02bcbd3847f392e0be0b59079

View File

@ -228,9 +228,9 @@ bool RtspPlayer::handleAuthenticationFailure(const string &paramsStr) {
return false; return false;
} }
char realm[paramsStr.size()]; char realm[1024];
char nonce[paramsStr.size()]; char nonce[1024];
char stale[paramsStr.size()]; char stale[1024];
if (sscanf(paramsStr.data(), "Digest realm=\"%[^\"]\", nonce=\"%[^\"]\", stale=%[a-zA-Z]", realm, nonce, stale) == 3) { if (sscanf(paramsStr.data(), "Digest realm=\"%[^\"]\", nonce=\"%[^\"]\", stale=%[a-zA-Z]", realm, nonce, stale) == 3) {
(*this)[kRtspRealm] = realm; (*this)[kRtspRealm] = realm;