aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ber.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-11-05 20:43:25 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-11-05 20:43:25 +0000
commite10e84c2438d3acb19b7700f4b8d36a17298b60f (patch)
tree44d2039515f31b34a2b7ee5f023675f90360f985 /wiretap/ber.c
parent3b1f0881e2878ccbc7db209fbd7c924f6d3bb458 (diff)
Strengthen BER and ERF heuristics to solve:
Fail to load I4B traces http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1972 svn path=/trunk/; revision=23367
Diffstat (limited to 'wiretap/ber.c')
-rw-r--r--wiretap/ber.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/ber.c b/wiretap/ber.c
index 6e37a6fe9e..c38d30c410 100644
--- a/wiretap/ber.c
+++ b/wiretap/ber.c
@@ -171,6 +171,9 @@ int ber_open(wtap *wth, int *err, gchar **err_info _U_)
if(len != file_size) {
return 0; /* not ASN.1 */
}
+ }else{
+ /* XXX what if indefinet length? */
+ return 0;
}
/* seek back to the start of the file */