summaryrefslogtreecommitdiff
path: root/server/uloc.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-04-20 12:04:05 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-04-20 12:04:05 +0000
commit79229657d73ba7ad5b84c80399cf8c0660dee4b8 (patch)
tree2a8d0e04a6ca30dbc8a6296b6818b1ceb76a6ec4 /server/uloc.c
parentf1b81a8449430e896ce74b1309a14e9b655f79f4 (diff)
Bad prototype for ulogin_add_user (changed for error propogation)
ulocate_dispatch did not return after nak'ing a packet in one case.
Diffstat (limited to 'server/uloc.c')
-rw-r--r--server/uloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/uloc.c b/server/uloc.c
index e7bb366..48c3ef5 100644
--- a/server/uloc.c
+++ b/server/uloc.c
@@ -97,12 +97,12 @@ typedef struct _ZLocation_t {
static void ulogin_locate P((ZNotice_t *notice, struct sockaddr_in *who,
int auth)),
- ulogin_add_user P((ZNotice_t *notice, exposure_type exposure,
- struct sockaddr_in *who)),
ulogin_flush_user P((ZNotice_t *notice));
static ZLocation_t *ulogin_find P((ZNotice_t *notice, int strict));
static int ulogin_setup P((ZNotice_t *notice, ZLocation_t *locs,
exposure_type exposure, struct sockaddr_in *who)),
+ ulogin_add_user P((ZNotice_t *notice, exposure_type exposure,
+ struct sockaddr_in *who)),
ulogin_parse P((ZNotice_t *notice, ZLocation_t *locs)),
ulogin_expose_user P((ZNotice_t *notice, exposure_type exposure));
static exposure_type ulogin_remove_user P((ZNotice_t *notice, int auth,
@@ -419,6 +419,7 @@ ulocate_dispatch(notice, auth, who, server)
syslog(LOG_ERR, "unknown uloc opcode %s", notice->z_opcode);
if (server == me_server)
nack(notice, who);
+ return(ZERR_NONE);
}
if (server == me_server) {
server_forward(notice, auth, who);