Blame SOURCES/wireshark-0022-CVE-19628.patch
|
|
164878 |
diff --git a/epan/dissectors/packet-zbee-zcl-lighting.c b/epan/dissectors/packet-zbee-zcl-lighting.c
|
|
|
164878 |
index 2f8d880447..4757c272ce 100644
|
|
|
164878 |
--- a/epan/dissectors/packet-zbee-zcl-lighting.c
|
|
|
164878 |
+++ b/epan/dissectors/packet-zbee-zcl-lighting.c
|
|
|
164878 |
@@ -876,7 +876,11 @@ decode_color_xy(gchar *s, guint16 value)
|
|
|
164878 |
static void
|
|
|
164878 |
decode_color_temperature(gchar *s, guint16 value)
|
|
|
164878 |
{
|
|
|
164878 |
- g_snprintf(s, ITEM_LABEL_LENGTH, "%d [Mired] (%d [K])", value, 1000000/value);
|
|
|
164878 |
+ if (value == 0) {
|
|
|
164878 |
+ g_snprintf(s, ITEM_LABEL_LENGTH, "%u [Mired]", value);
|
|
|
164878 |
+ } else {
|
|
|
164878 |
+ g_snprintf(s, ITEM_LABEL_LENGTH, "%u [Mired] (%u [K])", value, 1000000/value);
|
|
|
164878 |
+ }
|
|
|
164878 |
return;
|
|
|
164878 |
} /*decode_power_conf_voltage*/
|
|
|
164878 |
|