Changeset 1541


Ignore:
Timestamp:
Mar 8, 2007, 4:10:17 AM (15 years ago)
Author:
joshe
Message:

Compile-testing after a merge is a good idea.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pex/libtransmission/peeraz.h

    r1540 r1541  
    472472parseAZHandshake( tr_peer_t * peer, uint8_t * buf, int len )
    473473{
    474     benc_val_t val, * sub, * dict, * subsub;
    475     uint8_t    msgs[ ( azmsgCount() + 7 ) / 8 ];
    476     int        ii, idx;
     474    benc_val_t      val, * sub, * dict, * subsub;
     475    tr_bitfield_t * msgs;
     476    int             ii, idx;
    477477
    478478#ifdef AZDBG
     
    513513
    514514    /* fill bitmask with supported message info */
    515     memset( msgs, 0, sizeof( msgs ) );
     515    msgs = tr_bitfieldNew( azmsgCount() );
    516516    for( ii = 0; ii < sub->val.l.count; ii++ )
    517517    {
     
    553553        {
    554554            peer_dbg( "Azureus message %s not supported", azmsgStr( ii ) );
     555            tr_bitfieldFree( msgs );
    555556            return TR_ERROR;
    556557        }
    557558    }
     559    tr_bitfieldFree( msgs );
    558560
    559561    return TR_OK;
Note: See TracChangeset for help on using the changeset viewer.