diff options
author | Robert S. French <rfrench@mit.edu> | 1987-06-25 23:35:02 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1987-06-25 23:35:02 +0000 |
commit | 2c8deb46a0f8da453f53e167a2e90f83fb50fd4c (patch) | |
tree | 05a4de0b5b0062d87d4563d3add5bb39af59d5e0 /lib/ZLocateU.c | |
parent | 6e0a23514dfcd08657ceae8aed4dd05d185acebc (diff) |
safety
Diffstat (limited to 'lib/ZLocateU.c')
-rw-r--r-- | lib/ZLocateU.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/ZLocateU.c b/lib/ZLocateU.c index b1e6e69..6f47a8d 100644 --- a/lib/ZLocateU.c +++ b/lib/ZLocateU.c @@ -45,14 +45,17 @@ Code_t ZLocateUser(user,nlocs) return (retval); if ((retval = ZIfNotice(buffer,sizeof buffer,&retnotice,&auth, - locate_pred,(char *)¬ice.z_uid)) != + Z_UIDpred,(char *)¬ice.z_uid)) != ZERR_NONE) return (retval); + if (retnotice.z_kind == SERVNAK) + return (ZERR_SERVNAK); + if (retnotice.z_kind != SERVACK) return (ZERR_INTERNAL); - end = retnotice.z_message+retnotice.z_message_len+1; + end = retnotice.z_message+retnotice.z_message_len; __locate_num = 0; @@ -77,10 +80,3 @@ Code_t ZLocateUser(user,nlocs) return (ZERR_NONE); } - -static int locate_pred(notice,uid) - ZNotice_t *notice; - ZUnique_Id_t *uid; -{ - return (ZCompareUID(uid,¬ice->z_uid)); -} |