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

source3/rpc_server/spoolss/srv_spoolss_nt.c

index b2200afef63cc83177350c51a7ad567870efc4e5..ec6f49e718e961589da0608fb248f6424b50d3d1 100644 (file)
@@ -2565,7 +2565,7 @@ static bool spoolss_connect_to_client(struct rpc_pipe_client **pp_pipe,
                return false;
        }
 
-       if ( the_cli->protocol != PROTOCOL_NT1 ) {
+       if ( cli_state_protocol(the_cli) != PROTOCOL_NT1 ) {
                DEBUG(0,("spoolss_connect_to_client: machine %s didn't negotiate NT protocol.\n", remote_machine));
                cli_shutdown(the_cli);
                return false;