aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ipfix.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-02-04 08:09:17 +0000
committerGuy Harris <guy@alum.mit.edu>2011-02-04 08:09:17 +0000
commit5399384c29bd12e523133ec1d2420b7077a6f099 (patch)
tree235e2d630972614549c9cf7f873652957a8fe47f /wiretap/ipfix.c
parent79b01c78be781d4f1734619a4fc5206a5444104f (diff)
Set *err before *err_info - that's how it's done in most other modules.
svn path=/trunk/; revision=35805
Diffstat (limited to 'wiretap/ipfix.c')
-rw-r--r--wiretap/ipfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/ipfix.c b/wiretap/ipfix.c
index 795b7c86ab..2d586f8bb1 100644
--- a/wiretap/ipfix.c
+++ b/wiretap/ipfix.c
@@ -146,8 +146,8 @@ ipfix_read_message_header(ipfix_message_header_t *pfx_hdr, FILE_T fh, int *err,
}
if (pfx_hdr->message_length < 16) {
- *err_info = g_strdup_printf("ipfix: message length %u is too short", pfx_hdr->message_length);
*err = WTAP_ERR_BAD_RECORD;
+ *err_info = g_strdup_printf("ipfix: message length %u is too short", pfx_hdr->message_length);
return FALSE;
}