Changeset 775


Ignore:
Timestamp:
05/02/06 01:37:26 (7 years ago)
Author:
perry
Message:

Avoid warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/protocols.c

    r770 r775  
    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.