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:
parent
2da83079f9
commit
c7624b8864
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue