summaryrefslogtreecommitdiff
path: root/server/uloc.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1987-09-15 07:31:59 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1987-09-15 07:31:59 +0000
commit68001c2dee11fcaa8edeb85e0b0b4a661c2b740b (patch)
treed896daa52c74868e9c7a6c9da8d13d5e0d4de420 /server/uloc.c
parent56f95ebe8cf9eba4cb1595feb760a3c4f5eb7644 (diff)
User locates must be authenticated (per privacy committee).
Diffstat (limited to 'server/uloc.c')
-rw-r--r--server/uloc.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/server/uloc.c b/server/uloc.c
index 1a851c2..aa63472 100644
--- a/server/uloc.c
+++ b/server/uloc.c
@@ -162,21 +162,18 @@ ZServerDesc_t *server;
{
zdbug((LOG_DEBUG,"ulocate_disp"));
- /* we allow unauthenticated locates */
- if (!strcmp(notice->z_opcode, LOCATE_LOCATE)) {
- zdbug((LOG_DEBUG,"locate"));
- ulogin_locate(notice, who);
- /* does xmit and ack itself, so return */
- return;
- }
- /* ... but not unauthentic changes of location status */
if (!auth) {
zdbug((LOG_DEBUG,"unauthentic ulocate"));
if (server == me_server)
clt_ack(notice, who, AUTH_FAILED);
return;
}
- if (!strcmp(notice->z_opcode, LOCATE_HIDE)) {
+ if (!strcmp(notice->z_opcode, LOCATE_LOCATE)) {
+ zdbug((LOG_DEBUG,"locate"));
+ ulogin_locate(notice, who);
+ /* does xmit and ack itself, so return */
+ return;
+ } else if (!strcmp(notice->z_opcode, LOCATE_HIDE)) {
zdbug((LOG_DEBUG,"user hide"));
if (ulogin_hide_user(notice, INVISIBLE)) {
if (server == me_server)