Commit ccd05624 authored by Nils Ohlmeier's avatar Nils Ohlmeier

adressed pabuhler's review comments

parent 76eec5bc
......@@ -330,7 +330,7 @@ srtp_err_status_t srtp_cipher_type_test(
if (buffer[k] != test_case->ciphertext[k]) {
status = srtp_err_status_algo_fail;
debug_print(srtp_mod_cipher, "test case %d failed", case_num);
debug_print(srtp_mod_cipher, "(failure at byte %d)", k);
debug_print(srtp_mod_cipher, "(failure at byte %u)", k);
break;
}
}
......@@ -418,7 +418,7 @@ srtp_err_status_t srtp_cipher_type_test(
if (buffer[k] != test_case->plaintext[k]) {
status = srtp_err_status_algo_fail;
debug_print(srtp_mod_cipher, "test case %d failed", case_num);
debug_print(srtp_mod_cipher, "(failure at byte %d)", k);
debug_print(srtp_mod_cipher, "(failure at byte %u)", k);
}
}
if (status) {
......@@ -602,7 +602,7 @@ srtp_err_status_t srtp_cipher_type_test(
status = srtp_err_status_algo_fail;
debug_print(srtp_mod_cipher, "random test case %d failed",
case_num);
debug_print(srtp_mod_cipher, "(failure at byte %d)", k);
debug_print(srtp_mod_cipher, "(failure at byte %u)", k);
}
}
if (status) {
......
......@@ -102,7 +102,8 @@ srtp_err_status_t srtp_rdb_add_index(srtp_rdb_t *rdb, uint32_t p_index)
{
unsigned int delta;
/* here we *assume* that p_index > rdb->window_start */
if (p_index <= rdb->window_start)
return srtp_err_status_replay_fail;
delta = (p_index - rdb->window_start);
if (delta < rdb_bits_in_bitmask) {
......
......@@ -4156,7 +4156,7 @@ srtp_err_status_t srtp_unprotect_rtcp_mki(srtp_t ctx,
/* we assume the hdr is 32-bit aligned to start */
if (pkt_octet_len < 0)
if (*pkt_octet_len < 0)
return srtp_err_status_bad_param;
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment