diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 35b8f7a83..c0e64a3a2 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -382,13 +382,13 @@ sub downloadruleset ($) { return 1; } + # Pass the requested URL to the downloader. + my $request = HTTP::Request->new(GET => $url); + # Generate temporary file name, located in "/var/tmp" and with a suffix of ".tmp". my $tmp = File::Temp->new( SUFFIX => ".tmp", DIR => "/var/tmp/", UNLINK => 0 ); my $tmpfile = $tmp->filename(); - # Pass the requested url to the downloader. - my $request = HTTP::Request->new(GET => $url); - my $dl_attempt = 1; my $response;