forked from osmocom/wireshark
Address to str: Missing break in switch (CID 1262416 & 1262417)
It will also fix "Unused Value" (CID 1262422) Change-Id: I626c087365e9d6fe625f807ab8ded518d94cab64 Reviewed-on: https://code.wireshark.org/review/6553 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
adf088173a
commit
3385984dd2
1 changed files with 3 additions and 0 deletions
|
@ -444,10 +444,13 @@ tvb_address_to_str(wmem_allocator_t *scope, tvbuff_t *tvb, address_type type, co
|
|||
switch (addr.len) {
|
||||
case 0:
|
||||
addr.data = NULL;
|
||||
break;
|
||||
case 1:
|
||||
addr.data = GUINT_TO_POINTER((guint)tvb_get_guint8(tvb, offset));
|
||||
break;
|
||||
default:
|
||||
addr.data = tvb_get_ptr(tvb, offset, addr.len);
|
||||
break;
|
||||
}
|
||||
|
||||
return address_to_str(scope, &addr);
|
||||
|
|
Loading…
Reference in a new issue