summaryrefslogtreecommitdiffstats
path: root/netwerk/sctp/src/netinet/sctp_auth.c
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2018-06-20 20:54:49 -0700
committerwolfbeast <mcwerewolf@gmail.com>2018-06-30 19:50:21 +0200
commit8d29394b4bc27b3575141685647df1509d687441 (patch)
treec50dc051e3ea39a03c0995573eabcff261abce3f /netwerk/sctp/src/netinet/sctp_auth.c
parent5054d5a119813a55bf02e341867dd39d0dc38c3d (diff)
downloadUXP-8d29394b4bc27b3575141685647df1509d687441.tar
UXP-8d29394b4bc27b3575141685647df1509d687441.tar.gz
UXP-8d29394b4bc27b3575141685647df1509d687441.tar.lz
UXP-8d29394b4bc27b3575141685647df1509d687441.tar.xz
UXP-8d29394b4bc27b3575141685647df1509d687441.zip
Cherry-pick user sctp rev SVN8789a6da02e2c7c03522bc6f275b302f6ef977fe
Diffstat (limited to 'netwerk/sctp/src/netinet/sctp_auth.c')
-rwxr-xr-xnetwerk/sctp/src/netinet/sctp_auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netwerk/sctp/src/netinet/sctp_auth.c b/netwerk/sctp/src/netinet/sctp_auth.c
index 50432ad8a..ee5ca36ce 100755
--- a/netwerk/sctp/src/netinet/sctp_auth.c
+++ b/netwerk/sctp/src/netinet/sctp_auth.c
@@ -1525,6 +1525,8 @@ sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m,
if (p_random != NULL) {
keylen = sizeof(*p_random) + random_len;
bcopy(p_random, new_key->key, keylen);
+ } else {
+ keylen = 0;
}
/* append in the AUTH chunks */
if (chunks != NULL) {