summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-11-25 16:18:24 +0100
committerSimon Rettberg2016-11-25 16:18:24 +0100
commit601754cc68746ce65cb60cea4cc2ed111d078a5c (patch)
tree9540d1c41091b9d1a1667343b6e43be42b414a16
parentConfigurable name of homeDirectory attribute (diff)
downloadldadp-601754cc68746ce65cb60cea4cc2ed111d078a5c.tar.gz
ldadp-601754cc68746ce65cb60cea4cc2ed111d078a5c.tar.xz
ldadp-601754cc68746ce65cb60cea4cc2ed111d078a5c.zip
Fix uninitialized variable use
-rw-r--r--proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.c b/proxy.c
index 786c1ed..dc11d26 100644
--- a/proxy.c
+++ b/proxy.c
@@ -967,7 +967,7 @@ static BOOL proxy_clientBindRequest(epoll_client_t *client, const unsigned long
printf("[Client] Anonymous bind accepted\n");
bodyLen = fmt_ldapbindresponse(bufoff, success, "", "main screen turn on", "");
} else {
- BOOL incorrect;
+ BOOL incorrect = FALSE;
server_t *server = server_getFromBase(&name);
if (server == NULL || (incorrect = (strncmp(password.s, "\x08\x0a\x0d\x7fINCORRECT", 13) == 0)) || isInt(&name, 0)) {
// The INCORRECT part is some weird thing I saw pam_ldap do - probably to identify misconfigured