Blame SOURCES/0017-Ticket-48681-Use-of-uninitialized-value-in-string-ne.patch

058656
From b7cca69de5f6cda32bc38504a7aa7e5bc786bbe6 Mon Sep 17 00:00:00 2001
058656
From: Mark Reynolds <mreynolds@redhat.com>
058656
Date: Thu, 19 Oct 2017 14:44:38 -0400
058656
Subject: [PATCH] Ticket 48681 - Use of uninitialized value in string ne at
058656
 /usr/bin/logconv.pl line 2565, <$LOGFH> line 4
058656
058656
Bug description:  The original fix for 48681 added a regression in regards to perl
058656
                  warning everytime you ran the script.  That was due to a new hash
058656
                  for sasl binds that was not initialized.
058656
058656
Fix Description:  Check is the saslbind hash "exists" before checking its value.
058656
058656
https://pagure.io/389-ds-base/issue/48681
058656
058656
Reviewed by: mreynolds (one line fix)
058656
058656
(cherry picked from commit e46749b77d95ad8fedf07d38890573b2862badf7)
058656
---
058656
 ldap/admin/src/logconv.pl | 2 +-
058656
 1 file changed, 1 insertion(+), 1 deletion(-)
058656
058656
diff --git a/ldap/admin/src/logconv.pl b/ldap/admin/src/logconv.pl
058656
index 4932db42e..473c71f21 100755
058656
--- a/ldap/admin/src/logconv.pl
058656
+++ b/ldap/admin/src/logconv.pl
058656
@@ -2562,7 +2562,7 @@ sub parseLineNormal
058656
 		if ($_ =~ /conn= *([0-9A-Z]+) +op= *([0-9\-]+)/i){
058656
 			$conn = $1;
058656
 			$op = $2;
058656
-			if ($hashes->{saslconnop}->{$conn-$op} ne ""){
058656
+			if (exists $hashes->{saslconnop}->{$conn-$op} && $hashes->{saslconnop}->{$conn-$op} ne ""){
058656
 				# This was a SASL BIND - record the dn
058656
 				if ($binddn ne ""){
058656
 					if($binddn eq $rootDN){ $rootDNBindCount++; }
058656
-- 
058656
2.13.6
058656