From 09517611f6fef2b37e02f921e2a06ae492afa034 Mon Sep 17 00:00:00 2001 From: simo Date: Fri, 17 Jun 2005 01:31:38 +0000 Subject: Fix tupkg server crash when empty password --- tupkg/server/tupkgs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs index 77aef56..ca9ab26 100755 --- a/tupkg/server/tupkgs +++ b/tupkg/server/tupkgs @@ -112,6 +112,9 @@ class ClientSocket(threading.Thread): def auth(self): authdata = self.readMsg(1) print authdata + if (not authdata.has_key('username')) or (not authdata.has_key('password')): + self.sendMsg("result=FAIL") + return 0 q = self.db.cursor() m = md5.new() m.update(authdata['password'][0]) -- cgit v1.2.3-70-g09d2