aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/erf.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/erf.c')
-rw-r--r--wiretap/erf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c
index 77d5ee6323..34c0f34b47 100644
--- a/wiretap/erf.c
+++ b/wiretap/erf.c
@@ -1068,6 +1068,7 @@ static void erf_write_wtap_option_to_interface_tag(wtap_block_t block _U_,
struct erf_meta_section *section_ptr = (struct erf_meta_section*) user_data;
struct erf_meta_tag *tag_ptr = NULL;
+ guint32 fcslen;
tag_ptr = (struct erf_meta_tag*) g_malloc0(sizeof(struct erf_meta_tag));
@@ -1133,7 +1134,8 @@ static void erf_write_wtap_option_to_interface_tag(wtap_block_t block _U_,
tag_ptr->type = ERF_META_TAG_fcs_len;
tag_ptr->length = 4;
tag_ptr->value = (guint8*)g_malloc(tag_ptr->length);
- phtonl(tag_ptr->value, (guint32)optval->uint8val);
+ fcslen = (guint32)optval->uint8val;
+ phtonl(tag_ptr->value, fcslen);
break;
/* TODO: Don't know what to do with these yet */
case OPT_IDB_EUIADDR: