Skip to content

Commit

Permalink
Convert label_length to host byte order before use (#3146)
Browse files Browse the repository at this point in the history
  • Loading branch information
uxmaster committed Jan 11, 2023
1 parent 0ea7eff commit aa6560f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ void janus_sctp_handle_open_request_message(janus_sctp_association *sctp, janus_

if((channel = janus_sctp_find_channel_by_stream(sctp, stream))) {
JANUS_LOG(LOG_ERR, "[%"SCNu64"] channel %d is in state %d instead of CLOSED.\n", sctp->handle_id, channel->id, channel->state);
JANUS_LOG(LOG_ERR, "%.*s\n", req->label_length, req->label);
JANUS_LOG(LOG_ERR, "%.*s\n", ntohs(req->label_length), req->label);
/* XXX: some error handling */
return;
}
Expand Down

0 comments on commit aa6560f

Please sign in to comment.