AMQP 1.0: Fix dissection of UUID datatypes

Set a correct data length: 16-bytes, not 1-byte. And use the
standard function to print the uuid.

Change-Id: Ic4cc8d8de3f469e43664fbd7f6eb89083dc83be6
Reviewed-on: https://code.wireshark.org/review/8905
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Petr Gotthard 2015-06-12 16:57:07 -07:00 committed by Pascal Quantin
parent 70fa77f1a3
commit a7f2b7f1de
1 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@
#include <epan/exceptions.h>
#include <epan/expert.h>
#include <epan/prefs.h>
#include <epan/to_str.h>
#include "packet-tcp.h"
#include "packet-ssl.h"
@ -10989,8 +10990,8 @@ format_amqp_1_0_uuid(tvbuff_t *tvb,
{
e_guid_t uuid;
tvb_get_guid(tvb, offset, &uuid, ENC_BIG_ENDIAN);
*value = tvb_format_text(tvb, offset, 16);
return 1;
*value = guid_to_str(wmem_packet_scope(), &uuid);
return 16;
}
static int