Ignore:
Timestamp:
11/14/17 17:20:06 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, dpdk-ndag, etsilive, master, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
ccef50c
Parents:
e8db2d4
Message:

Fix maybe uninitialised warnings in OSPF libpacketdump decoders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/ospf2_1001.c

    ree6e802 r1de522d  
    3333DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len) {
    3434        unsigned char *link_ptr = NULL;
    35         libtrace_ospf_link_v2_t *link;
     35        libtrace_ospf_link_v2_t *link = NULL;
    3636        uint32_t link_len;
    3737        libtrace_ospf_router_lsa_v2_t *hdr;
     
    5858                return;
    5959        while (trace_get_next_ospf_link_v2(&link_ptr, &link, &len, &link_len) > 0) {
     60                if (!link) {
     61                        break;
     62                }
    6063                printf(" OSPF Router Link: Id %s ", inet_ntoa(link->link_id));
    6164                printf("Data %s\n", inet_ntoa(link->link_data));
Note: See TracChangeset for help on using the changeset viewer.