use htonl(ppid) when sending a SCTP message

This commit is contained in:
Harald Welte 2015-09-07 22:39:56 +02:00
parent 3f71256750
commit cfcc1e67ad
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg)
{
struct hnb_context *ctx = fd->data;
struct sctp_sndrcvinfo sinfo = {
.sinfo_ppid = msgb_ppid(msg),
.sinfo_ppid = htonl(msgb_ppid(msg)),
.sinfo_stream = ctx->hnbap_stream,
};
int rc;