diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2013-08-14 21:51:32 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2013-08-14 21:51:32 +0000 |
| commit | 0e05fbded989dbae569fd3a6dc6f0aad3b79cc7d (patch) | |
| tree | b8dbab9905a0cdca7d137ff9c025963db9db3483 | |
| parent | 93c5875b24a556e77d25179f0e0ca30d824c4793 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/sctp_output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 244056fd2199..50e1ed97e0b9 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -5406,6 +5406,14 @@ do_a_abort: } SCTP_BUF_LEN(m) = sizeof(struct sctp_init_chunk); + /* + * We might not overwrite the identification[] completely and on + * some platforms time_entered will contain some padding. Therefore + * zero out the cookie to avoid putting uninitialized memory on the + * wire. + */ + memset(&stc, 0, sizeof(struct sctp_state_cookie)); + /* the time I built cookie */ (void)SCTP_GETTIME_TIMEVAL(&stc.time_entered); |
