Make sure dissect_ber_integer() always sets a value.

svn path=/trunk/; revision=33358
This commit is contained in:
Gerald Combs 2010-06-28 22:13:53 +00:00
parent 51ef439176
commit dd4e194304
1 changed files with 4 additions and 0 deletions

View File

@ -1387,6 +1387,10 @@ printf("INTEGERnew dissect_ber_integer(%s) entered implicit_tag:%d \n",name,impl
#endif
if(value){
*value=0;
}
if(!implicit_tag){
offset=dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, NULL);