From 79229657d73ba7ad5b84c80399cf8c0660dee4b8 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Tue, 20 Apr 1993 12:04:05 +0000 Subject: Bad prototype for ulogin_add_user (changed for error propogation) ulocate_dispatch did not return after nak'ing a packet in one case. --- server/uloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/uloc.c') 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); -- cgit v1.2.3