sctp: change to check peer prsctp_capable when using prsctp polices
[deliverable/linux.git] / net / sctp / chunk.c
index 14990e21cf5570568ff2f52bf170e8ca5c9effb8..0a3dbec0a8fb8eebf07e7bd74875ce5d0552c617 100644 (file)
@@ -179,7 +179,7 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,
                         msg, msg->expires_at, jiffies);
        }
 
-       if (asoc->prsctp_enable &&
+       if (asoc->peer.prsctp_capable &&
            SCTP_PR_TTL_ENABLED(sinfo->sinfo_flags))
                msg->expires_at =
                        jiffies + msecs_to_jiffies(sinfo->sinfo_timetolive);
@@ -340,7 +340,7 @@ errout:
 /* Check whether this message has expired. */
 int sctp_chunk_abandoned(struct sctp_chunk *chunk)
 {
-       if (!chunk->asoc->prsctp_enable ||
+       if (!chunk->asoc->peer.prsctp_capable ||
            !SCTP_PR_POLICY(chunk->sinfo.sinfo_flags)) {
                struct sctp_datamsg *msg = chunk->msg;
 
This page took 0.026692 seconds and 5 git commands to generate.