diff options
author | Pale Moon <git-repo@palemoon.org> | 2018-06-20 20:54:49 -0700 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-30 19:50:21 +0200 |
commit | a24b722a53bce2ba50d0c70899b8346bf1d4519f (patch) | |
tree | c50dc051e3ea39a03c0995573eabcff261abce3f /netwerk | |
parent | 392db2aa7eaafe498dde6800a163b0fea202d8eb (diff) | |
download | uxp-a24b722a53bce2ba50d0c70899b8346bf1d4519f.tar.gz |
Cherry-pick user sctp rev SVN8789a6da02e2c7c03522bc6f275b302f6ef977fe
Diffstat (limited to 'netwerk')
-rwxr-xr-x | netwerk/sctp/src/netinet/sctp_auth.c | 2 | ||||
-rwxr-xr-x | netwerk/sctp/src/netinet/sctp_pcb.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/netwerk/sctp/src/netinet/sctp_auth.c b/netwerk/sctp/src/netinet/sctp_auth.c index 50432ad8a5..ee5ca36ce3 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) { diff --git a/netwerk/sctp/src/netinet/sctp_pcb.c b/netwerk/sctp/src/netinet/sctp_pcb.c index 2970970250..58c164f503 100755 --- a/netwerk/sctp/src/netinet/sctp_pcb.c +++ b/netwerk/sctp/src/netinet/sctp_pcb.c @@ -7688,6 +7688,8 @@ sctp_load_addresses_from_init(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) { |