Changeset 879


Ignore:
Timestamp:
06/23/06 12:02:36 (7 years ago)
Author:
perry
Message:

Fix latent bugs with protocol decodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/protocols.c

    r861 r879  
    8787                return NULL; 
    8888 
    89         eth=(libtrace_802_11_payload_t *)((char*)wifi+sizeof(*eth)); 
    90  
    91         if (*type) *type=eth->type; 
     89        eth=(libtrace_802_11_payload_t *)((char*)wifi+sizeof(*wifi)); 
     90 
     91        if (type) *type=eth->type; 
    9292 
    9393        return eth; 
     
    141141        llc = (libtrace_llcsnap_t*)((char *)llc + 4); 
    142142 
    143         if (*type) *type = ntohs(llc->type); 
     143        if (type) *type = ntohs(llc->type); 
    144144 
    145145        return (void*)((char*)llc+sizeof(*llc)); 
Note: See TracChangeset for help on using the changeset viewer.