Browse Source

fix segfault when no SSRC pointer is present

fixes #370

Change-Id: If1e89b21a183acd79a6c84aee6e470849022e37c
changes/76/14176/1
Richard Fuchs 9 years ago
parent
commit
f979159d0e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/media_socket.c

+ 1
- 1
daemon/media_socket.c View File

@ -862,7 +862,7 @@ static int __k_srtp_crypt(struct rtpengine_srtp *s, struct crypto_context *c, st
.cipher = c->params.crypto_suite->kernel_cipher,
.hmac = c->params.crypto_suite->kernel_hmac,
.mki_len = c->params.mki_len,
.last_index = ssrc_ctx->srtp_index,
.last_index = ssrc_ctx ? ssrc_ctx->srtp_index : 0,
.auth_tag_len = c->params.crypto_suite->srtp_auth_tag,
};
if (c->params.mki_len)


Loading…
Cancel
Save