summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-17 03:38:13 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-17 03:38:13 +0000
commitbf48b6e69a638dc78ab119424e27adc0ccc6c610 (patch)
tree60b76902359884ad7c708cec467bee0baf6e2898 /source4/libcli/raw
parent90916de4a5303601a59938237a551d976cde0589 (diff)
downloadsamba-bf48b6e69a638dc78ab119424e27adc0ccc6c610.tar.gz
samba-bf48b6e69a638dc78ab119424e27adc0ccc6c610.tar.bz2
samba-bf48b6e69a638dc78ab119424e27adc0ccc6c610.zip
added OpenPrinter and a test function. Note that the Samba3 structure
for OpenPrinter was wrong. (This used to be commit 186ddbbf8774d0960852ea9186c8e4e6f7be7a0f)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/clitransport.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index 80bb1e301f..2d614cc3bd 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/libcli/raw/clitransport.c
@@ -42,6 +42,8 @@ struct cli_transport *cli_transport_init(struct cli_socket *sock)
cli_null_set_signing(transport);
transport->socket->reference_count++;
+ ZERO_STRUCT(transport->called);
+
return transport;
}
@@ -71,6 +73,10 @@ BOOL cli_transport_connect(struct cli_transport *transport,
int len = NBT_HDR_SIZE;
struct cli_request *req;
+ if (called) {
+ transport->called = *called;
+ }
+
/* 445 doesn't have session request */
if (transport->socket->port == 445) {
return True;