From 5ef4e91cf099290c8798fd12b35927eed34b2fcf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 11 Oct 2011 16:13:49 +1100 Subject: s3-smbd Give the nt error string when failing to set up encrypted transport Signed-off-by: Stefan Metzmacher --- source3/smbd/trans2.c | 8 +++++--- 1 file 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; -- cgit