From bf55b4289d0e69cca5ca94459b614a5476ec07b7 Mon Sep 17 00:00:00 2001 From: Praveen Kumar D Date: Fri, 12 May 2023 22:57:46 +0530 Subject: [PATCH] compilation error --- .vscode/settings.json | 5 +++++ src/switch_rtp.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..9e0811cb32 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "any": "c" + } +} \ No newline at end of file diff --git a/src/switch_rtp.c b/src/switch_rtp.c index bfa7631fd9..29613d3911 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3075,7 +3075,7 @@ static int dtls_state_setup(switch_rtp_t *rtp_session, switch_dtls_t *dtls) r = 1; } else if ((cert = SSL_get_peer_certificate(dtls->ssl))) { dtls_fingerprint_t fp; - fp->type = dtls->remote_fp->type; + fp.type = dtls->remote_fp->type; switch_core_cert_extract_fingerprint(cert, &fp); r = !memcmp(fp.str,dtls->remote_fp->str,MAX_FPLEN); @@ -3274,7 +3274,7 @@ static int cb_verify_peer(int preverify_ok, X509_STORE_CTX *ctx) if ((cert = SSL_get_peer_certificate(dtls->ssl))) { dtls_fingerprint_t fp; - fp->type = dtls->remote_fp->type; + fp.type = dtls->remote_fp->type; switch_core_cert_extract_fingerprint(cert, &fp); r = !memcmp(fp.str,dtls->remote_fp->str,MAX_FPLEN);