Changeset 3831


Ignore:
Timestamp:
Nov 16, 2007, 3:32:42 AM (14 years ago)
Author:
charles
Message:

fix bencode crash reported earlier today by Gimp_, and possibly also by tiennou

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r3828 r3831  
    419419        case TYPE_STR:
    420420            evbuffer_add_printf( out, "%i:", (int)val->val.i );
    421             evbuffer_add( out, val->val.s.s, val->val.i );
     421            if( val->val.s.s != NULL )
     422                evbuffer_add( out, val->val.s.s, val->val.i );
    422423            break;
    423424
Note: See TracChangeset for help on using the changeset viewer.