From d8c0646a5db34a390ceeb853e50c2d098b992c85 Mon Sep 17 00:00:00 2001 From: Luk Claes Date: Sat, 19 May 2012 18:09:30 +0200 Subject: s3:libsmb: get rid of cli_state_protocol Signed-off-by: Luk Claes Signed-off-by: Stefan Metzmacher --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 3a6fc35793..2b0387dd49 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -55,6 +55,7 @@ #include "printing/printer_list.h" #include "../lib/tsocket/tsocket.h" #include "rpc_client/cli_winreg_spoolss.h" +#include "../libcli/smb/smbXcli_base.h" /* macros stolen from s4 spoolss server */ #define SPOOLSS_BUFFER_UNION(fn,info,level) \ @@ -2499,7 +2500,7 @@ static bool spoolss_connect_to_client(struct rpc_pipe_client **pp_pipe, return false; } - if ( cli_state_protocol(the_cli) != PROTOCOL_NT1 ) { + if ( smbXcli_conn_protocol(the_cli->conn) != PROTOCOL_NT1 ) { DEBUG(0,("spoolss_connect_to_client: machine %s didn't negotiate NT protocol.\n", remote_machine)); cli_shutdown(the_cli); return false; -- cgit