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

Provide error message if HB info is not as expected.

parent 9a1e8aa2
No related branches found
No related tags found
No related merge requests found
...@@ -1386,6 +1386,7 @@ static int verify_heartbeat_chunk(struct sctp_heartbeat_chunk *actual_chunk, ...@@ -1386,6 +1386,7 @@ static int verify_heartbeat_chunk(struct sctp_heartbeat_chunk *actual_chunk,
length - sizeof(struct sctp_heartbeat_chunk)) == 0) { length - sizeof(struct sctp_heartbeat_chunk)) == 0) {
return STATUS_OK; return STATUS_OK;
} else { } else {
asprintf(error, "live packet heartbeat info not as expected");
return STATUS_ERR; return STATUS_ERR;
} }
} }
...@@ -1408,6 +1409,7 @@ static int verify_heartbeat_ack_chunk(struct sctp_heartbeat_ack_chunk *actual_ch ...@@ -1408,6 +1409,7 @@ static int verify_heartbeat_ack_chunk(struct sctp_heartbeat_ack_chunk *actual_ch
length - sizeof(struct sctp_heartbeat_ack_chunk)) == 0) { length - sizeof(struct sctp_heartbeat_ack_chunk)) == 0) {
return STATUS_OK; return STATUS_OK;
} else { } else {
asprintf(error, "live packet heartbeat info not as expected");
return STATUS_ERR; return STATUS_ERR;
} }
} }
......
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