Skip to content

Commit cc362ae

Browse files
authored
Merge pull request #617 from bifurcation/inout
Use current directions in stream update test
2 parents 004b7bb + e19efdc commit cc362ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/srtp_driver.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -2833,16 +2833,16 @@ srtp_err_status_t srtp_test_update()
28332833
policy.window_size = 128;
28342834
policy.allow_repeat_tx = 0;
28352835
policy.next = NULL;
2836-
policy.ssrc.type = ssrc_any_outbound;
28372836
policy.key = test_key;
28382837

28392838
/* create a send and recive ctx with defualt profile and test_key */
2840-
status = srtp_create(&srtp_recv, &policy);
2839+
policy.ssrc.type = ssrc_any_outbound;
2840+
status = srtp_create(&srtp_snd, &policy);
28412841
if (status)
28422842
return status;
28432843

28442844
policy.ssrc.type = ssrc_any_inbound;
2845-
status = srtp_create(&srtp_snd, &policy);
2845+
status = srtp_create(&srtp_recv, &policy);
28462846
if (status)
28472847
return status;
28482848

0 commit comments

Comments
 (0)