From a7b9c628af3155f0ad406830a975c84845d34b3b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Jul 2011 12:59:32 +0200 Subject: s3:auth_server: use cli->is_guestlogin instead of parsing cli->inbuf. cli->inbuf is not the valid response buffer of the session setup response. metze --- source3/auth/auth_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index da380db01a..d50ed7a024 100644 --- a/source3/auth/auth_server.c +++ b/source3/auth/auth_server.c @@ -350,7 +350,7 @@ static NTSTATUS check_smbserver_security(const struct auth_context *auth_context */ tested_password_server = True; - if ((SVAL(cli->inbuf,smb_vwv2) & 1) == 0) { + if (!cli->is_guestlogin) { DEBUG(0,("server_validate: password server %s allows users as non-guest \ with a bad password.\n", cli->desthost)); DEBUG(0,("server_validate: This is broken (and insecure) behaviour. Please do not \ -- cgit