From 037d2c55f6d394648ee8efa9cba845b89b73dad2 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 3 May 2023 13:21:34 +0200 Subject: [PATCH] srtp-utils: Pass MKI length into error message Fixes: 493772354172d418ae8d79118090e75cd8c1be80 --- plugins/provider/sip/calls-srtp-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provider/sip/calls-srtp-utils.c b/plugins/provider/sip/calls-srtp-utils.c index f0f620d..e7e3b92 100644 --- a/plugins/provider/sip/calls-srtp-utils.c +++ b/plugins/provider/sip/calls-srtp-utils.c @@ -119,7 +119,7 @@ validate_crypto_attribute (calls_srtp_crypto_attribute *attr, expected_mki_length > 128) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "MKI length must be between 1 and 128, got %u", - expected_key_salt_length); + attr->key_params[0].mki_length); return FALSE; } }