Changeset 84a8828


Ignore:
Timestamp:
05/02/06 01:37:26 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
9a5b234
Parents:
998bee5
Message:

Avoid warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    re6d963c r84a8828  
    360360                       
    361361                default:
     362                        *proto=0;
    362363                        return NULL;
    363364        }
     
    419420        icmp=(libtrace_icmp_t*)trace_get_transport(packet,&proto,NULL);
    420421
    421         if (proto != 1)
     422        if (!icmp || proto != 1)
    422423                return NULL;
    423424
Note: See TracChangeset for help on using the changeset viewer.