aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-03-17 11:46:07 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-03-17 11:46:07 +0000
commit09f2ccdca35fbe63c3d213290b2df020444b249f (patch)
treef7956adf26ecbca6819cc174384fc003f9045791 /epan/dissectors
parenta346237ffd985913e0e33c7ef2b5c48f39193ff3 (diff)
Fix bug 819: make sure to always return a tvb pointer.
svn path=/trunk/; revision=17656
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-ber.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index 1953b0a997..6625da1c3b 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -726,6 +726,8 @@ printf("OCTET STRING dissect_ber_octet_string(%s) entered\n",name);
length_remaining = tvb_length_remaining(tvb, offset);
if(length_remaining<1){
+ if(out_tvb)
+ *out_tvb=NULL;
return end_offset;
}