1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-27 00:12:35 +00:00

#1332: libtransmission crashes from invalid RPC query

This commit is contained in:
Charles Kerr 2008-10-09 20:38:00 +00:00
parent c8759bedfb
commit 50b5be7b91

View file

@ -98,6 +98,7 @@ callback( void * vdata,
} }
case JSON_T_NULL: case JSON_T_NULL:
tr_bencInitStr( getNode( data ), "", 0 );
break; break;
case JSON_T_INTEGER: case JSON_T_INTEGER:
@ -113,8 +114,8 @@ callback( void * vdata,
break; break;
case JSON_T_STRING: case JSON_T_STRING:
tr_bencInitStr( getNode( tr_bencInitStr( getNode( data ),
data ), value->vu.str.value, value->vu.str.value,
value->vu.str.length ); value->vu.str.length );
break; break;