From aae7ea5e676502500518dc735c77e4e44a62d042 Mon Sep 17 00:00:00 2001 From: Eileen Donlon Date: Mon, 5 Mar 2012 19:50:12 -0500 Subject: [PATCH] add null checks to fix bugs in StreamTcpTest23 --- src/stream-tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 134ad94773..e8fb9b1c2f 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -7226,7 +7226,7 @@ static int StreamTcpTest23(void) // goto end; } - if(ssn.client.seg_list_tail->payload_len != 4) { + if(ssn.client.seg_list_tail != NULL && ssn.client.seg_list_tail->payload_len != 4) { printf("failed in segment reassmebling: "); result &= 0; } @@ -7314,7 +7314,7 @@ static int StreamTcpTest24(void) goto end; } - if(ssn.client.seg_list_tail->payload_len != 2) { + if(ssn.client.seg_list_tail != NULL && ssn.client.seg_list_tail->payload_len != 2) { printf("failed in segment reassmebling\n"); result &= 0; } -- 2.47.2