From 2595c8b8aa91b6ee2c79e96cbf91e1519e1790ba Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 23 Apr 2019 06:59:00 +0000 Subject: [PATCH] Fix incorrect index offsets in generateTargetingImage Commit 63a9aa5 reworked the index generation code, inadvertently replacing a fixed offset of 6 * quad with a dynamic 8 * quad. Use the correct 6 * code multiplier with the new dynamic associationTypes count code. Verified to fix #173 on a Blackbird test box. Signed-off-by: Timothy Pearson --- src/usr/targeting/common/xmltohb/xmltohb.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl index b3370906e89..6470927c2f2 100755 --- a/src/usr/targeting/common/xmltohb/xmltohb.pl +++ b/src/usr/targeting/common/xmltohb/xmltohb.pl @@ -6683,7 +6683,7 @@ sub generateTargetingImage { # list, num associations x 8 byte pointers to association lists # length(double + quad + quad + # associations x quad) - $index *= (20 + 8 * (scalar @associationTypes)); + $index *= (20 + 6 * (scalar @associationTypes)); $attrhash{$attributeId}->{default} = $index + $firstTgtPtr; }