Changeset 1969

Show
Ignore:
Timestamp:
02/19/08 23:22:34 (11 months ago)
Author:
aturner
Message:

always init packet ptr. fixes #291

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/tcprewrite.c

    r1960 r1969  
    246246        dbgx(2, "packet " COUNTER_SPEC " caplen %d", packetnum, pkthdr.caplen); 
    247247 
     248        packet = (u_char **)&pktdata; 
     249 
    248250#ifdef ENABLE_VERBOSE 
    249251        if (options.verbose) 
     
    265267            goto WRITE_PACKET; /* still need to write it so cache stays in sync */ 
    266268 
    267         packet = (u_char **)&pktdata; 
    268269        if ((rcode = tcpedit_packet(tcpedit, &pkthdr_ptr, packet, cache_result)) == TCPEDIT_ERROR) { 
    269270            return -1;