diff --git a/src/peer_connection.c b/src/peer_connection.c index 5b1f5fb1..7422b507 100644 --- a/src/peer_connection.c +++ b/src/peer_connection.c @@ -371,7 +371,6 @@ void peer_connection_set_remote_description(PeerConnection* pc, const char* sdp, char buf[256]; char* val_start = NULL; uint32_t* ssrc = NULL; - DtlsSrtpRole role = DTLS_SRTP_ROLE_SERVER; int is_update = 0; Agent* agent = &pc->agent; @@ -380,10 +379,6 @@ void peer_connection_set_remote_description(PeerConnection* pc, const char* sdp, strncpy(buf, start, line - start); buf[line - start] = '\0'; - if (strstr(buf, "a=setup:passive")) { - role = DTLS_SRTP_ROLE_CLIENT; - } - if (strstr(buf, "a=fingerprint")) { strncpy(pc->dtls_srtp.remote_fingerprint, buf + 22, DTLS_SRTP_FINGERPRINT_LENGTH); }