From 4d740955919ce740623413ddf89850dca5ed4330 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Mon, 17 Oct 2011 12:44:17 +0000 Subject: [PATCH] (trunk libT) #4571 "can't edit UDP trackers via RPC" -- fixed. --- libtransmission/rpcimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index ece06a339..3a70036b9 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -982,7 +982,7 @@ replaceTrackers( tr_torrent * tor, tr_benc * urls ) if( tr_bencGetInt( pair[0], &pos ) && tr_bencGetStr( pair[1], &newval ) - && tr_urlIsValid( newval, -1 ) + && tr_urlIsValidTracker( newval ) && pos < n && pos >= 0 ) { -- 2.40.0