#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
1 changed files with 3 additions and 2 deletions

View File

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