From f264adda359ec58846840e60d9743ca522fa4004 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 24 Mar 2022 20:29:21 +0100 Subject: [PATCH] ids-functions.pl: Re-order download request handler creation. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 35b8f7a833..c0e64a3a22 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; -- 2.39.5