Skip to content
Snippets Groups Projects
Commit 97712dcf authored by Hoelscher's avatar Hoelscher
Browse files

modify print of INCOMING_SSN_RESET parameter

parent e3cf2511
No related branches found
No related tags found
No related merge requests found
......@@ -373,7 +373,7 @@ static int sctp_incoming_ssn_reset_request_parameter_to_string(
reqsn = ntohl(parameter->reqsn);
fputs("INCOMING_SSN_RESET[", s);
fprintf(s, "len=%hu, ", length);
fprintf(s, "req_sn=%u ,", reqsn);
fprintf(s, "req_sn=%u, ", reqsn);
fputs("sids=[", s);
for(len = 0; len < ((length-8)/sizeof(u16)); len++) {
u16 sid;
......@@ -423,8 +423,8 @@ static int sctp_reconfig_response_parameter_to_string(
length = ntohs(parameter->length);
// filter correct length
if (!(length == sizeof(struct sctp_reconfig_response_parameter)) &&
!(length == sizeof(struct sctp_reconfig_response_parameter) - 8)) {
if ((length != sizeof(struct sctp_reconfig_response_parameter)) &&
(length != sizeof(struct sctp_reconfig_response_parameter) - 8)) {
fputs("invalid RECONFIG_RESPONSE parameter", s);
asprintf(error, "RECONFIG_RESPONSE parameter illegal (length=%u)",
length);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment