summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-12-18 04:25:21 +0000
committerJames Peach <jpeach@samba.org>2006-12-18 04:25:21 +0000
commit4cc6db0e752e5236e15aadbb4f6503b412c38224 (patch)
treee2aeb1d67329e5183bd4cbab08260a9d6e50a061 /source/smbd/negprot.c
parent8d0f9da702b937d58f64d146c567a9e0a6e0cb9c (diff)
downloadsamba-4cc6db0e752e5236e15aadbb4f6503b412c38224.tar.gz
samba-4cc6db0e752e5236e15aadbb4f6503b412c38224.tar.xz
samba-4cc6db0e752e5236e15aadbb4f6503b412c38224.zip
r20237: Replace exit_server with exit_server_cleanly where appropriate. All
send_smb failures should be clean exits. All times when we exit as a matter of policy should also be clean exits.
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r--source/smbd/negprot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index bbd10130509..8e9dcf22e28 100644
--- a/source/smbd/negprot.c
+++ b/source/smbd/negprot.c
@@ -293,7 +293,7 @@ static int reply_nt1(char *inbuf, char *outbuf)
} else {
DEBUG(0,("reply_nt1: smb signing is incompatible with share level security !\n"));
if (lp_server_signing() == Required) {
- exit_server("reply_nt1: smb signing required and share level security selected.");
+ exit_server_cleanly("reply_nt1: smb signing required and share level security selected.");
}
}
}
@@ -461,7 +461,7 @@ int reply_negprot(connection_struct *conn,
if (done_negprot) {
END_PROFILE(SMBnegprot);
- exit_server("multiple negprot's are not permitted");
+ exit_server_cleanly("multiple negprot's are not permitted");
}
done_negprot = True;
@@ -570,7 +570,8 @@ int reply_negprot(connection_struct *conn,
DEBUG( 5, ( "negprot index=%d\n", choice ) );
if ((lp_server_signing() == Required) && (Protocol < PROTOCOL_NT1)) {
- exit_server("SMB signing is required and client negotiated a downlevel protocol");
+ exit_server_cleanly("SMB signing is required and "
+ "client negotiated a downlevel protocol");
}
END_PROFILE(SMBnegprot);