From 3a1cc22f83ac223e832c7cea008139a7b9a3055e Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 19 Sep 2014 10:25:54 +0200 Subject: [PATCH] modules/lokker: Array address is never NULL. This would always be true. Comparing against the first array item is fine. CID: 1155284 --- src/modules/lokker/lokker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/lokker/lokker.c b/src/modules/lokker/lokker.c index c09c59bdc..2d3229635 100644 --- a/src/modules/lokker/lokker.c +++ b/src/modules/lokker/lokker.c @@ -658,7 +658,7 @@ _lokker_check_auth(void) } else if (e_desklock_is_personal()) { - if ((e_config->desklock_passwd) && (edd->passwd && edd->passwd[0]) && + if ((e_config->desklock_passwd) && edd->passwd[0] && (e_config->desklock_passwd == e_auth_hash_djb2(edd->passwd, strlen(edd->passwd)))) { /* password ok */