aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/yp_access.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1996-01-10 16:07:39 +0000
committerBill Paul <wpaul@FreeBSD.org>1996-01-10 16:07:39 +0000
commit009790d1362746c78a661b58458953395f3a4ba1 (patch)
treebafeae1a1095eedec08c42a94d5df539f81eac5e /usr.sbin/ypserv/yp_access.c
parent52abcf2c37d000937599cf929f56fb7ff9c3b1b4 (diff)
downloadsrc-009790d1362746c78a661b58458953395f3a4ba1.tar.gz
src-009790d1362746c78a661b58458953395f3a4ba1.zip
More changes brought about by testing of yppush (which is almost finished):
In yp_server.c: - Modify ypproc_xfr_2_svc() so that it sends both a return status and a yppush callback (if necessary: normally ypxfr is supposed to send the callback once it's done transfering a map, but if we can't get ypxfr off the ground for some reason, we have to send it here instead) and do it in the right order: have to send the reply to the ypproc_xfr request first, then send callback. This requires us to cheat a bit: you're supposed to just return() and let the RPC dispatcher send the reply for you, but we wouldn't be able to send the callback message if we did that, so we have to call svc_sendreply() ourselves, then send the callback, and then return NULL so that the RPC dispatcher won't call svc_sendreply() itself. - Also modify ypproc_xfr_2_svc() so that it doesn't invoke ypxfr with the -f flag: this overrides the order number checks, which prevents us from ever refusing maps that aren't newer than then ones we already have. In yp_access.c: - Fix a typo in the TCP_WRAPPER support code (which is #ifdef'ed out by default): a close paren somehow vanished into the ether.
Notes
Notes: svn path=/head/; revision=13375
Diffstat (limited to 'usr.sbin/ypserv/yp_access.c')
-rw-r--r--usr.sbin/ypserv/yp_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_access.c b/usr.sbin/ypserv/yp_access.c
index d022d8e2fdc4..cdd69efc8d29 100644
--- a/usr.sbin/ypserv/yp_access.c
+++ b/usr.sbin/ypserv/yp_access.c
@@ -117,7 +117,7 @@ int yp_access(map, rqstp)
if (!status && rqhost->sin_addr.s_addr != oldaddr) {
yp_error("connect from %s:%d refused",
- inet_ntoa(rqhost->sin_addr, ntohs(rqhost->sin_port));
+ inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port));
oldaddr = rqhost->sin_addr.s_addr;
return(1);
}