Set *err before *err_info - that's how it's done in most other modules.

svn path=/trunk/; revision=35805
This commit is contained in:
Guy Harris 2011-02-04 08:09:17 +00:00
parent 79b01c78be
commit 5399384c29
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}