Skip to content
Snippets Groups Projects
Commit bdb04e35 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Improve SCTP chunk printing.

Put in a missing ',' between the flags and error causes when
printing ABORT[] and ERROR[] chunks if both are available.
parent a856bc0b
No related branches found
No related tags found
No related merge requests found
......@@ -966,7 +966,7 @@ static int sctp_abort_chunk_to_string(FILE *s,
&iter, error);
cause != NULL;
cause = sctp_causes_next(&iter, error)) {
if (index > 0)
if (((index == 0) && (flags != 0x00)) || (index > 0))
fputs(", ", s);
if (*error != NULL)
break;
......@@ -1049,7 +1049,7 @@ static int sctp_error_chunk_to_string(FILE *s,
&iter, error);
cause != NULL;
cause = sctp_causes_next(&iter, error)) {
if (index > 0)
if (((index == 0) && (flags != 0x00)) || (index > 0))
fputs(", ", s);
if (*error != NULL)
break;
......
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