summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-03 13:00:09 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-03 13:00:09 +0100
commit6a1e4e1b433d8ce1f37554f5baca1c417fc21023 (patch)
tree590bf521891e90cfb0e0f051302388b2bc622b00
parentfdc8530a082d2e65fe4739a5ccacf1de6b839f23 (diff)
Report errors in SRTP decrypt.
-rw-r--r--src/srtp.cc4
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;
}