Set $name before trying to adjust it

This commit is contained in:
Dave Smith 2019-10-05 20:52:33 -05:00
parent 321ca60d04
commit e19e1df555
No known key found for this signature in database
GPG key ID: 17ABEFC537939108

View file

@ -3765,7 +3765,8 @@ sub nic_nfsn_examples {
o 'nfsn'
The 'nfsn' protocol is used for the DNS service offered by www.nearlyfreespeech.net.
The 'nfsn' protocol is used for the DNS service offered by www.nearlyfreespeech.net. Use this URL to get your API-Key-password:
https://members.nearlyfreespeech.net/support/assist?tag=apikey
Configuration variables applicable to the 'nfsn' protocol are:
protocol=nfsn
@ -3913,6 +3914,7 @@ sub nic_nfsn_update {
$zone);
next;
} else {
$name = $h;
$name =~ s/(.*)\.${zone}$/$1/;
}