Blame SOURCES/0036-Ticket-47550-logconv-failed-logins-Use-of-uninitiali.patch

ba46c7
From e2a880b2ff070573151b6ffaf78137710259b26c Mon Sep 17 00:00:00 2001
ba46c7
From: Rich Megginson <rmeggins@redhat.com>
ba46c7
Date: Thu, 10 Oct 2013 15:55:29 -0600
ba46c7
Subject: [PATCH 36/39] Ticket #47550 logconv: failed logins: Use of uninitialized value in numeric comparison at logconv.pl line 949
ba46c7
ba46c7
https://fedorahosted.org/389/ticket/47550
ba46c7
Reviewed by: nhosoi (Thanks!)
ba46c7
Branch: 389-ds-base-1.3.1
ba46c7
Fix Description: Copy/paste error.  Changed badPassword to badPasswordIp.
ba46c7
Platforms tested: RHEL6 x86_64
ba46c7
Flag Day: no
ba46c7
Doc impact: no
ba46c7
(cherry picked from commit 322fd7996aa810db1b51882d8d1103e11a36cc62)
ba46c7
(cherry picked from commit 86000e43d69267d0b6b8110dcdba43352868c173)
ba46c7
(cherry picked from commit 5844c565267cf23f8a1c4ca5177d26cd82809392)
ba46c7
---
ba46c7
 ldap/admin/src/logconv.pl |    2 +-
ba46c7
 1 files changed, 1 insertions(+), 1 deletions(-)
ba46c7
ba46c7
diff --git a/ldap/admin/src/logconv.pl b/ldap/admin/src/logconv.pl
ba46c7
index 7381a66..8b423ca 100755
ba46c7
--- a/ldap/admin/src/logconv.pl
ba46c7
+++ b/ldap/admin/src/logconv.pl
ba46c7
@@ -946,7 +946,7 @@ if ($verb eq "yes" || $usage =~ /f/ ){
ba46c7
 			}
ba46c7
 			print "\nFrom the IP address(s) :\n\n";
ba46c7
 			$bpCount = 0;
ba46c7
-			foreach my $ip (sort {$badPassword{$b} <=> $badPassword{$a} } keys %badPasswordIp){
ba46c7
+			foreach my $ip (sort {$badPasswordIp{$b} <=> $badPasswordIp{$a} } keys %badPasswordIp){
ba46c7
 				if ($bpCount > $sizeCount){ last;}
ba46c7
 				$bpCount++;
ba46c7
 				printf "%-4s        %-16s\n", $badPasswordIp{$ip}, $ip;
ba46c7
-- 
ba46c7
1.7.1
ba46c7