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);