(rpc) fix possible password authentication error reported by kman

This commit is contained in:
Charles Kerr 2008-07-15 20:39:50 +00:00
parent c692dff9d5
commit cb82d4ad1c
1 changed files with 1 additions and 2 deletions

View File

@ -294,8 +294,7 @@ startServer( tr_rpc_server * server )
shttpd_set_option( server->ctx, "acl", server->acl );
}
if( server->isPasswordEnabled ) {
char * buf = tr_strdup_printf( "/transmission/rpc=%s,"
"/transmission/upload=%s", passwd, passwd );
char * buf = tr_strdup_printf( "/transmission=%s", passwd );
shttpd_set_option( server->ctx, "protect", buf );
tr_free( buf );
}