Changeset 1355

Show
Ignore:
Timestamp:
29/05/08 13:27:49 (7 months ago)
Author:
spa1
Message:
  • Ensure that remaining is not null before changing the value
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/protocols_l3.c

    r1354 r1355  
    5050 
    5151        if ((ntohs(ipptr->ip_off) & SW_IP_OFFMASK) != 0) { 
    52                 *remaining = 0;         /* Not sure if this is right but 
    53                                            consistency is a good thing, right? 
    54                                          */ 
     52                if (remaining) 
     53                        *remaining = 0;          
    5554                return NULL; 
    5655        }