1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

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

This commit is contained in:
Charles Kerr 2007-11-16 03:32:42 +00:00
parent 807eff8416
commit b6b339e25a

View file

@ -418,7 +418,8 @@ saveImpl( struct evbuffer * out, const benc_val_t * val )
case TYPE_STR:
evbuffer_add_printf( out, "%i:", (int)val->val.i );
evbuffer_add( out, val->val.s.s, val->val.i );
if( val->val.s.s != NULL )
evbuffer_add( out, val->val.s.s, val->val.i );
break;
case TYPE_LIST: