Fix bug 819: make sure to always return a tvb pointer.

svn path=/trunk/; revision=17656
This commit is contained in:
Jaap Keuter 2006-03-17 11:46:07 +00:00
parent a346237ffd
commit 09f2ccdca3
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}