1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

(trunk daemon) #4440 "transmission-remote --port-test & --blocklist-update fail silently" -- fixed with patch from KyleK.

This commit is contained in:
Jordan Lee 2011-08-24 18:50:39 +00:00
parent 2da83079f9
commit c7624b8864

View file

@ -1644,6 +1644,16 @@ processResponse( const char * rpcurl, const void * response, size_t len )
{
int64_t tag = -1;
const char * str;
if(tr_bencDictFindStr(&top, "result", &str))
{
if( strcmp( str, "success") )
{
printf( "Error: %s\n", str );
status |= EXIT_FAILURE;
}
else
{
tr_bencDictFindInt( &top, "tag", &tag );
switch( tag )
@ -1696,6 +1706,10 @@ processResponse( const char * rpcurl, const void * response, size_t len )
tr_bencFree( &top );
}
}
else
status |= EXIT_FAILURE;
}
return status;
}