diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-10-23 15:49:22 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-10-23 15:49:22 +0000 |
commit | b7a42c0562a14602ef003def609b976789ca6967 (patch) | |
tree | 8953ee9779a523efe1ca5e6b3e161e447ba4e9c3 /usr.sbin/ypserv/yp_server.c | |
parent | f8eb2a9fb79078a12eece35d0b0f22600f007607 (diff) | |
download | FreeBSD-src-b7a42c0562a14602ef003def609b976789ca6967.zip FreeBSD-src-b7a42c0562a14602ef003def609b976789ca6967.tar.gz |
In ypxfr_callback(), the failure to create an RPC CLIENT * handle for
the callback is a fatal error for this function; return immediatlely if
this happens. Also make the "failed to establish callback handle" error
mesaage print the IP address of the target callback host.
Diffstat (limited to 'usr.sbin/ypserv/yp_server.c')
-rw-r--r-- | usr.sbin/ypserv/yp_server.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index f32a983..ee93651 100644 --- a/usr.sbin/ypserv/yp_server.c +++ b/usr.sbin/ypserv/yp_server.c @@ -45,7 +45,7 @@ #include <rpc/rpc.h> #ifndef lint -static const char rcsid[] = "$Id: yp_server.c,v 1.9 1996/04/28 04:38:52 wpaul Exp $"; +static const char rcsid[] = "$Id: yp_server.c,v 1.10 1996/05/31 16:01:51 wpaul Exp $"; #endif /* not lint */ int forked = 0; @@ -295,9 +295,11 @@ static void ypxfr_callback(rval,addr,transid,prognum,port) timeout.tv_usec = 0; addr->sin_port = htons(port); - if ((clnt = clntudp_create(addr, prognum, 1, timeout, &sock)) == NULL) - yp_error("%s", clnt_spcreateerror("failed to establish \ -callback handle")); + if ((clnt = clntudp_create(addr,prognum,1,timeout,&sock)) == NULL) { + yp_error("%s: %s", inet_ntoa(addr->sin_addr), + clnt_spcreateerror("failed to establish callback handle")); + return; + } ypxfr_resp.status = rval; ypxfr_resp.transid = transid; |