Skip to content

Commit

Permalink
Fixed reception of SCTP label (issue meetecho#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
meetecho committed Oct 21, 2014
1 parent 95025f8 commit f37e9d1
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 @@ -798,7 +798,7 @@ void janus_sctp_handle_open_request_message(janus_sctp_association *sctp, janus_
}
/* Read label */
char label[20];
int len = req->label_length;
int len = ntohs(req->label_length);
if(len > 16)
len = 16;
if(len > 0) {
Expand Down

0 comments on commit f37e9d1

Please sign in to comment.