aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-13 02:36:51 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-13 02:36:51 +0000
commit9dac6d42d502dd24b899e211870a40e11c4f0fed (patch)
tree5089d6173477d892eea2d341323b47c11ec2fa4d /plugins
parentc66241700a003681ae9dd6367b95f10751b615ed (diff)
From Matthijs Melchior: allow an absent or empty file name to mean "no
type table". svn path=/trunk/; revision=9650
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index 24f11651ce..d8bde3489d 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2003 by Matthijs Melchior <matthijs.melchior@xs4all.nl>
*
- * $Id: packet-asn1.c,v 1.13 2003/12/21 05:29:26 jmayer Exp $
+ * $Id: packet-asn1.c,v 1.14 2004/01/13 02:36:51 guy Exp $
*
* A plugin for:
*
@@ -2579,6 +2579,9 @@ read_asn1_type_table(char *filename)
guchar *data;
struct stat stat;
+ if ((filename == 0) || (strlen(filename) == 0))
+ return; /* no filename provided */
+
f = fopen(filename, "rb");
if (f == 0) {
if (strcmp(filename, default_asn1_filename) != 0 ||