From 2fd68e2bbf9fa3021ce29d164f84351e6c1321a3 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Fri, 13 Oct 2017 12:14:27 +0200 Subject: [PATCH] Add a runtime check. --- gtests/net/packetdrill/packet_to_string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtests/net/packetdrill/packet_to_string.c b/gtests/net/packetdrill/packet_to_string.c index 226c0f82..c40738af 100644 --- a/gtests/net/packetdrill/packet_to_string.c +++ b/gtests/net/packetdrill/packet_to_string.c @@ -158,6 +158,7 @@ static int sctp_packet_to_string(FILE *s, struct packet *packet, int i, if (*error != NULL) break; result = sctp_chunk_to_string(s, chunk, error); + assert(result != STATUS_OK || *error == NULL); if (result != STATUS_OK) break; index++; -- GitLab