Fix another RFC 6458 issue. Spotted by Irene Ruengeler.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2012-05-03 10:26:33 +00:00
parent 84ac0fb8ca
commit 254945d75a
2 changed files with 2 additions and 2 deletions

View File

@ -3430,7 +3430,7 @@ sctp_find_cmsg(int c_type, void *data, struct mbuf *control, size_t cpsize)
}
m_copydata(control, at + CMSG_ALIGN(sizeof(struct cmsghdr)), sizeof(struct sctp_authinfo), (caddr_t)&authinfo);
sndrcvinfo->sinfo_keynumber_valid = 1;
sndrcvinfo->sinfo_keynumber = authinfo.auth_keyid;
sndrcvinfo->sinfo_keynumber = authinfo.auth_keynumber;
break;
default:
return (found);

View File

@ -169,7 +169,7 @@ struct sctp_default_prinfo {
};
struct sctp_authinfo {
uint16_t auth_keyid;
uint16_t auth_keynumber;
};
struct sctp_rcvinfo {