diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-03-16 21:40:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-03-16 21:40:34 +0000 |
commit | 0eaac18fffe2461c86377d1b13f1eef06ff41b49 (patch) | |
tree | 5d5cf87c976fdedd6127a03ce2d26355ef23f4f0 | |
parent | b678ec37043c194616c52568798e48a4154e4462 (diff) |
Check whether we have a first byte before checking it.
svn path=/trunk/; revision=13778
-rw-r--r-- | epan/dissectors/packet-kerberos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-kerberos.c b/epan/dissectors/packet-kerberos.c index 11d29cd68a..083045a255 100644 --- a/epan/dissectors/packet-kerberos.c +++ b/epan/dissectors/packet-kerberos.c @@ -3733,7 +3733,7 @@ dissect_kerberos_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) All krb5 commands start with an APPL tag and thus is >=0x60 so if first byte is <=16 just blindly assume it is krb4 then */ - if(tvb_get_guint8(tvb, 0)<=0x10){ + if(tvb_bytes_exist(tvb, 0, 1) && tvb_get_guint8(tvb, 0)<=0x10){ if(krb4_handle){ return call_dissector(krb4_handle, tvb, pinfo, tree); }else{ |