summaryrefslogtreecommitdiff
blob: 71807f0588e413a2273250430eaed80cfc09b23b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- app.cpp	2013-10-22 10:45:54.041120246 -0400
+++ app.cpp.new	2013-10-22 10:46:58.864122061 -0400
@@ -486,7 +486,7 @@
 		return true;
 
 	encrypted = crypt(LoginPanel->GetPasswd().c_str(), correct);
-	return ((strcmp(encrypted, correct) == 0) ? true : false);
+	return ((encrypted && strcmp(encrypted, correct) == 0) ? true : false);
 }
 #endif