Skip to content

Commit 849c69d

Browse files
authored
Fix Comments on improving FuzzTargetNg seladb#1258 (seladb#1636)
1 parent eaf6133 commit 849c69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng_ext.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void __append_interface_block_to_file_info(const light_pcapng interface_b
143143
light_option ts_resolution_option = NULL;
144144
uint32_t ticks_per_sec;
145145

146-
if (info->interface_block_count >= MAX_SUPPORTED_INTERFACE_BLOCKS)
146+
if (info == NULL || info->interface_block_count >= MAX_SUPPORTED_INTERFACE_BLOCKS)
147147
return;
148148

149149
light_get_block_info(interface_block, LIGHT_INFO_BODY, &interface_desc_block, NULL);

0 commit comments

Comments
 (0)