From 50fc276946bd1957fb653dc446cc38f52627c8a3 Mon Sep 17 00:00:00 2001
From: Ann Priestman <apriestman@basistech.com>
Date: Thu, 10 Jan 2019 12:45:28 -0500
Subject: [PATCH] Fix the copy paste error

---
 tsk/auto/db_postgresql.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tsk/auto/db_postgresql.cpp b/tsk/auto/db_postgresql.cpp
index ee8aa6962..666836810 100755
--- a/tsk/auto/db_postgresql.cpp
+++ b/tsk/auto/db_postgresql.cpp
@@ -839,8 +839,8 @@ int TskDbPostgreSQL::addImageInfo(int type, TSK_OFF_T ssize, int64_t & objId, co
     removeNonUtf8(sha256_local, MAX_DB_STRING_LENGTH - 1, sha256.c_str());
     char *timezone_sql = PQescapeLiteral(conn, timeZone_local, strlen(timeZone_local));
     char *md5_sql = PQescapeLiteral(conn, md5_local, strlen(md5_local));
-    char *sha1_sql = PQescapeLiteral(conn, md5_local, strlen(sha1_local));
-    char *sha256_sql = PQescapeLiteral(conn, md5_local, strlen(sha256_local));
+    char *sha1_sql = PQescapeLiteral(conn, sha1_local, strlen(sha1_local));
+    char *sha256_sql = PQescapeLiteral(conn, sha256_local, strlen(sha256_local));
 
     if (!isEscapedStringValid(timezone_sql, timeZone_local, "TskDbPostgreSQL::addImageInfo: Unable to escape time zone string: %s (Error: %s)\n")
         || !isEscapedStringValid(md5_sql, md5_local, "TskDbPostgreSQL::addImageInfo: Unable to escape md5 string: %s (Error: %s)\n")
-- 
GitLab