aboutsummaryrefslogtreecommitdiffstats
path: root/tap-protocolinfo.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2009-01-13 20:37:28 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2009-01-13 20:37:28 +0000
commit2bae926f6582394cb446a0f83d4d77f80efa2416 (patch)
tree6cd0106d15f983c283568d1403d29b3c8a60c9ac /tap-protocolinfo.c
parentb6ff9846055bb3e68d0ffd2c01a9995de2513fa2 (diff)
Make the column check actually check the information column status.
svn path=/trunk/; revision=27222
Diffstat (limited to 'tap-protocolinfo.c')
-rw-r--r--tap-protocolinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tap-protocolinfo.c b/tap-protocolinfo.c
index 4f9c4b934a..45ec4dcf7a 100644
--- a/tap-protocolinfo.c
+++ b/tap-protocolinfo.c
@@ -64,11 +64,11 @@ protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const vo
* is to modify the columns, and if the columns aren't being
* displayed, that makes this tap somewhat pointless.
*
- * To prevent a crash, we check whether pinfo->cinfo is null
- * and, if so, we report that error and exit.
+ * To prevent a crash, we check whether INFO column is writable
+ * and, if not, we report that error and exit.
*/
- if (pinfo->cinfo == NULL) {
- fprintf(stderr, "tshark: the proto,colinfo tap doesn't work if the columns aren't being printed.\n");
+ if (!check_col(pinfo->cinfo, COL_INFO)) {
+ fprintf(stderr, "tshark: the proto,colinfo tap doesn't work if the INFO column isn't being printed.\n");
exit(1);
}
gp=proto_get_finfo_ptr_array(edt->tree, rs->hf_index);