git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5392491
)
s3-smbd Give the nt error string when failing to set up encrypted transport
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 11 Oct 2011 05:13:49 +0000
(16:13 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 18 Oct 2011 02:13:32 +0000
(13:13 +1100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 8b6a15f9f83a24c3bbb78fe2537484dac5f91c58..1a381950dfa69430cbdcbbaaefecfb9192089e31 100644
(file)
--- 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;