summaryrefslogtreecommitdiff
path: root/extcap/ciscodump.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap/ciscodump.c')
-rw-r--r--extcap/ciscodump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c
index 1db3f65662..2eb08772fe 100644
--- a/extcap/ciscodump.c
+++ b/extcap/ciscodump.c
@@ -227,7 +227,8 @@ static int parse_line(char* packet _U_, unsigned* offset, char* line, int status
part = parts;
while(*part) {
if (strlen(*part) > 1) {
- value = (guint32)htonl(strtoul(*part, NULL, 16));
+ value = (guint32)strtoul(*part, NULL, 16);
+ value = htonl(value);
size = strlen(*part) / 2;
memcpy(packet + *offset, &value, size);
*offset += (guint32)size;