diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-21 19:37:27 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-21 20:49:17 +0100 |
commit | 6a149022976fe6a5579ec9afc7a4d2dcb44dc8af (patch) | |
tree | fafd3cb4d3f1a43d3a46bc601b8a5279882c0295 /source3/param | |
parent | f7b4151a64d8c6851e62255a7139fd00a5fc63a3 (diff) | |
download | samba-6a149022976fe6a5579ec9afc7a4d2dcb44dc8af.tar.gz samba-6a149022976fe6a5579ec9afc7a4d2dcb44dc8af.tar.bz2 samba-6a149022976fe6a5579ec9afc7a4d2dcb44dc8af.zip |
s3: Make the implicit reference to get_Protocol in lp_use_sendfile() explicit
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 78a5aa809f..17a4e2dce3 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -9713,12 +9713,13 @@ uint32 lp_get_spoolss_state( void ) Ensure we don't use sendfile if server smb signing is active. ********************************************************************/ -bool lp_use_sendfile(int snum, struct smb_signing_state *signing_state) +bool lp_use_sendfile(int snum, enum protocol_types proto, + struct smb_signing_state *signing_state) { bool sign_active = false; /* Using sendfile blows the brains out of any DOS or Win9x TCP stack... JRA. */ - if (get_Protocol() < PROTOCOL_NT1) { + if (proto < PROTOCOL_NT1) { return false; } if (signing_state) { |