diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-12-03 13:00:09 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-12-03 13:00:09 +0100 |
commit | 6a1e4e1b433d8ce1f37554f5baca1c417fc21023 (patch) | |
tree | 590bf521891e90cfb0e0f051302388b2bc622b00 /src | |
parent | fdc8530a082d2e65fe4739a5ccacf1de6b839f23 (diff) |
Report errors in SRTP decrypt.
Diffstat (limited to 'src')
-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; } |