aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/tap.c')
-rw-r--r--epan/tap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/tap.c b/epan/tap.c
index 60ee22e195..4d89056b2b 100644
--- a/epan/tap.c
+++ b/epan/tap.c
@@ -177,6 +177,9 @@ tap_queue_packet(int tap_id, packet_info *pinfo, const void *tap_specific_data)
/* get a free tap_packet structure, this is CHEAP */
tpt=tap_packet_list_free;
+ if (!tpt) {
+ return;
+ }
tap_packet_list_free=tpt->next;
tpt->next=tap_packet_list_queue;
tap_packet_list_queue=tpt;