summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-11 16:13:49 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-18 13:13:32 +1100
commit5ef4e91cf099290c8798fd12b35927eed34b2fcf (patch)
tree480c02e6cd9013ae2211e8de70ef07382054a80b
parent5392491f7719c0639ecb15832df212bb3767882e (diff)
downloadsamba-5ef4e91cf099290c8798fd12b35927eed34b2fcf.tar.gz
samba-5ef4e91cf099290c8798fd12b35927eed34b2fcf.tar.bz2
samba-5ef4e91cf099290c8798fd12b35927eed34b2fcf.zip
s3-smbd Give the nt error string when failing to set up encrypted transport
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 8b6a15f9f8..1a381950df 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3684,9 +3684,11 @@ static void call_trans2setfsinfo(connection_struct *conn,
* encryption is now *on*. */
status = srv_encryption_start(conn);
if (!NT_STATUS_IS_OK(status)) {
- exit_server_cleanly(
- "Failure in setting "
- "up encrypted transport");
+ char *reason = talloc_asprintf(talloc_tos(),
+ "Failure in setting "
+ "up encrypted transport: %s",
+ nt_errstr(status));
+ exit_server_cleanly(reason);
}
}
return;