diff options
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 51cab806abd8..988745272458 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -1472,10 +1472,10 @@ no_hmac: | |||
1472 | suseconds_t usecs = (tv.tv_sec - | 1472 | suseconds_t usecs = (tv.tv_sec - |
1473 | bear_cookie->expiration.tv_sec) * 1000000L + | 1473 | bear_cookie->expiration.tv_sec) * 1000000L + |
1474 | tv.tv_usec - bear_cookie->expiration.tv_usec; | 1474 | tv.tv_usec - bear_cookie->expiration.tv_usec; |
1475 | __be32 n = htonl(usecs); | ||
1475 | 1476 | ||
1476 | usecs = htonl(usecs); | ||
1477 | sctp_init_cause(*errp, SCTP_ERROR_STALE_COOKIE, | 1477 | sctp_init_cause(*errp, SCTP_ERROR_STALE_COOKIE, |
1478 | &usecs, sizeof(usecs)); | 1478 | &n, sizeof(n)); |
1479 | *error = -SCTP_IERROR_STALE_COOKIE; | 1479 | *error = -SCTP_IERROR_STALE_COOKIE; |
1480 | } else | 1480 | } else |
1481 | *error = -SCTP_IERROR_NOMEM; | 1481 | *error = -SCTP_IERROR_NOMEM; |