summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2015-03-16 15:43:07 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2015-11-03 17:15:44 +0000
commit81b0d0c20fe04c82d91c6ca68c24849f3323f2a3 (patch)
tree66427b01da9cb838f633f0fc5bdf994970f1972e
parentf7b35366975729c8135be065d7cf1e0aaa79fc15 (diff)
Clarify authorization failure reason strings sent back to the client
-rw-r--r--os/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/auth.c b/os/auth.c
index 7da6fc6ed..e6bd5026d 100644
--- a/os/auth.c
+++ b/os/auth.c
@@ -207,11 +207,11 @@ CheckAuthorization(unsigned int name_length,
return (*protocols[i].Check) (data_length, data, client,
reason);
}
- *reason = "Protocol not supported by server\n";
+ *reason = "Authorization protocol not supported by server\n";
}
}
else
- *reason = "No protocol specified\n";
+ *reason = "Authorization required, but no authorization protocol specified\n";
return (XID) ~0L;
}