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:
parent
807eff8416
commit
b6b339e25a
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue