diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-04 15:15:50 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-04 15:15:50 -0800 |
commit | cbafe17bb37acfb76acf9d9905be1029e274089e (patch) | |
tree | 26e1eb9b867a5564400dce6d3839891c9a9b9d16 /source3/smbd/sesssetup.c | |
parent | 51cb96271b4f9a4bd37b44bdb6042913b60ba3c1 (diff) | |
download | samba-cbafe17bb37acfb76acf9d9905be1029e274089e.tar.gz samba-cbafe17bb37acfb76acf9d9905be1029e274089e.tar.bz2 samba-cbafe17bb37acfb76acf9d9905be1029e274089e.zip |
Remove "Protocol" as an extern, and add accessor functions.
Jeremy.
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r-- | source3/smbd/sesssetup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 16ea2ebfa9..addd386fb4 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -26,8 +26,6 @@ #include "smbd/globals.h" #include "../libcli/auth/spnego.h" -extern enum protocol_types Protocol; - /* For split krb5 SPNEGO blobs. */ struct pending_auth_data { struct pending_auth_data *prev, *next; @@ -1432,7 +1430,7 @@ void reply_sesssetup_and_X(struct smb_request *req) smb_bufsize = SVAL(req->vwv+2, 0); - if (Protocol < PROTOCOL_NT1) { + if (get_Protocol() < PROTOCOL_NT1) { uint16 passlen1 = SVAL(req->vwv+7, 0); /* Never do NT status codes with protocols before NT1 as we @@ -1759,7 +1757,7 @@ void reply_sesssetup_and_X(struct smb_request *req) /* it's ok - setup a reply */ reply_outbuf(req, 3, 0); - if (Protocol >= PROTOCOL_NT1) { + if (get_Protocol() >= PROTOCOL_NT1) { push_signature(&req->outbuf); /* perhaps grab OS version here?? */ } |