s3:net_rpc: make use of cli_state_protocol()
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Aug 2011 14:59:10 +0000 (16:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 02:54:29 +0000 (04:54 +0200)
metze

source3/utils/net_rpc.c

index 58d69410bdb4c3d0c8899edeb05bc8351cf22a0d..592885ac7c4d93b942c1654e651d0a1ae932e7c8 100644 (file)
@@ -7099,7 +7099,7 @@ bool net_rpc_check(struct net_context *c, unsigned flags)
        status = cli_negprot(cli);
        if (!NT_STATUS_IS_OK(status))
                goto done;
-       if (cli->protocol < PROTOCOL_NT1)
+       if (cli_state_protocol(cli) < PROTOCOL_NT1)
                goto done;
 
        ret = true;