Dereference pointers before hashing them to generate a MAC address. (Closes: #547265)
This commit is contained in:
@@ -1903,7 +1903,14 @@ sub generateMACAddress
|
||||
my $hash = '';
|
||||
foreach my $key (qw/ hostname ip dhcp dist /)
|
||||
{
|
||||
$hash .= $CONFIG{ $key } if ( $CONFIG{ $key } );
|
||||
if ( $CONFIG{ $key } ) {
|
||||
if (ref($CONFIG{ $key }) eq 'ARRAY') {
|
||||
$hash .= join(',',@{$CONFIG{ $key }});
|
||||
} elsif (ref($CONFIG{ $key }) eq 'HASH') {
|
||||
$hash .= join(',',values %{$CONFIG{ $key }});
|
||||
} else {
|
||||
$hash .= $CONFIG{ $key };
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
2
debian/changelog
vendored
2
debian/changelog
vendored
@@ -14,6 +14,8 @@ xen-tools (4.2~rc1-1) UNRELEASED; urgency=low
|
||||
* Don't delete configuration file if it already exists when
|
||||
xen-create-image is run. (Closes: #520177)
|
||||
* Don't write the FQDN into /etc/hostname (Closes: #492583)
|
||||
* Dereference pointers before hashing them to generate a MAC
|
||||
address. (Closes: #547265)
|
||||
* Fix typo in /usr/lib/xen-tools/*.d/75-fixup-securetty (Closes:
|
||||
#503339)
|
||||
* Downgrade reiserfsprogs, xfsprogs and rinse to Suggests. (Closes:
|
||||
|
||||
Reference in New Issue
Block a user