s3:auth_server: make use of cli_state_protocol()
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Aug 2011 15:00:24 +0000 (17:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 02:54:29 +0000 (04:54 +0200)
metze

source3/auth/auth_server.c

index f29859945c2ba02004fc5af85767be2376fd67ce..4582d980c2d46cc9e0cc3a12ed17d3f8c1379e4e 100644 (file)
@@ -116,7 +116,7 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
                return NULL;
        }
 
-       if (cli->protocol < PROTOCOL_LANMAN2 ||
+       if (cli_state_protocol(cli) < PROTOCOL_LANMAN2 ||
            !(cli->sec_mode & NEGOTIATE_SECURITY_USER_LEVEL)) {
                TALLOC_FREE(mutex);
                DEBUG(1,("%s isn't in user level security mode\n",desthost));