mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +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,6 +418,7 @@ saveImpl( struct evbuffer * out, const benc_val_t * val )
|
|||
|
||||
case TYPE_STR:
|
||||
evbuffer_add_printf( out, "%i:", (int)val->val.i );
|
||||
if( val->val.s.s != NULL )
|
||||
evbuffer_add( out, val->val.s.s, val->val.i );
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue