]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix invalid reset of URL variable in csd-wrapper
authorAudric Schiltknecht <storm+gitlab@chemicalstorm.org>
Wed, 2 Aug 2023 15:15:50 +0000 (15:15 +0000)
committerDaniel Lenski <dlenski@gmail.com>
Tue, 8 Aug 2023 00:31:48 +0000 (20:31 -0400)
The URL variable is constructed from the CSD_HOSTNAME at the beginning of
the script.  However, prior to parsing the command line, it was reset to
an empty value.

[DRL: This bug has existed since
https://gitlab.com/openconnect/openconnect/-/commit/cb83e535213ff2132643d2a68c50abc294b43b82,
when I modified the `csd-wrapper.sh` script to parse its `-url` command-line
argument, but forgot to remove the subsequent line `URL=`.]

Signed-off-by: Audric Schiltknecht <storm+gitlab@chemicalstorm.org>
trojans/csd-wrapper.sh

index 02a9a15145be21539a89081e7a867eedc5c35cf3..96d7956d969977d0151d5d5f64e61f4e7774baaf 100755 (executable)
@@ -46,7 +46,6 @@ BINS=("cscan" "cstub" "cnotify")
 # parsing command line
 shift
 
-URL=
 TICKET=
 STUB=
 GROUP=