Changeset d83006c for lib


Ignore:
Timestamp:
01/11/19 14:11:02 (21 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
2a1eebc
Parents:
9a792a9
Message:

Fix bad use of logical ORs in format_pcapng.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapng.c

    r9a792a9 rd83006c  
    347347
    348348                /* If this is a custom option */
    349                 if (optcode == PCAPNG_CUSTOM_OPTION_UTF8 || PCAPNG_CUSTOM_OPTION_BIN
    350                         || PCAPNG_CUSTOM_OPTION_UTF8_NONCOPY || PCAPNG_CUSTOM_OPTION_BIN_NONCOPY) {
     349                if (optcode == PCAPNG_CUSTOM_OPTION_UTF8 ||
     350                        optcode == PCAPNG_CUSTOM_OPTION_BIN ||
     351                        optcode == PCAPNG_CUSTOM_OPTION_UTF8_NONCOPY ||
     352                        optcode == PCAPNG_CUSTOM_OPTION_BIN_NONCOPY) {
    351353                        /* flip the pen and output the option value */
    352354                        //uint32_t pen = byteswap32((uint32_t)*optval);
Note: See TracChangeset for help on using the changeset viewer.