diff options
-rw-r--r-- | src/srtp.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/srtp.cc b/src/srtp.cc index 98c4002..72b3651 100644 --- a/src/srtp.cc +++ b/src/srtp.cc @@ -202,18 +202,22 @@ int SRTP::decrypt(char *packet, size_t size) case err_status_replay_fail: // TODO: throw SRTP::ReplayException();// (replay check failed) printf("srtp_unprotect failed replay %d\n", status); + sz = -1; break; case err_status_replay_old: // TODO: throw SRTP::ReplayOldException();// (replay check failed) printf("srtp_unprotect failed replay_old %d\n", status); + sz = -1; break; case err_status_auth_fail: // TODO: throw SRTP::AuthCheckException();// (auth check failed) printf("srtp_unprotect failed auth %d\n", status); + sz = -1; break; default: // TODO: throw SRTP::UnprotectException(); printf("srtp_unprotect failed %d\n", status); + sz = -1; break; } |