From 3ebc2a4d004da00b764d390bc15299edb2de9217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 22 Feb 2008 13:41:25 +0000 Subject: Check for existing cinfo in have_custom_cols(). This fixes the latest buildbot fuzz failures. svn path=/trunk/; revision=24421 --- epan/column-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan') diff --git a/epan/column-utils.c b/epan/column-utils.c index 06df303888..a472206652 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -319,7 +319,7 @@ have_custom_cols(column_info *cinfo) { /* The same as check_col(), but without the check to see if the column * is writable. */ - if (cinfo->col_first[COL_CUSTOM] >= 0) + if (cinfo && cinfo->col_first[COL_CUSTOM] >= 0) return TRUE; else return FALSE; -- cgit v1.2.3