From 44d076fbc4552ffe7ceb2bc4f3904ebec527a27b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 9 Apr 2015 19:01:22 +0200 Subject: [PATCH] fix #1132 --- scripts/merchant/merchant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/merchant/merchant.py b/scripts/merchant/merchant.py index 101297b93..b0a770561 100644 --- a/scripts/merchant/merchant.py +++ b/scripts/merchant/merchant.py @@ -134,7 +134,6 @@ def process_request(amount, confirmations, expires_in, password): def do_dump(password): if password != my_password: return "wrong password" - conn = sqlite3.connect(database); cur = conn.cursor() # read pending requests from table @@ -144,6 +143,8 @@ def do_dump(password): def getrequest(oid, password): + if password != my_password: + return "wrong password" oid = int(oid) conn = sqlite3.connect(database); cur = conn.cursor()