*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: yp_first.c,v 1.4 1996/08/19 08:35:09 tholo Exp $";
+static char *rcsid = "$OpenBSD: yp_first.c,v 1.5 1996/12/03 08:20:03 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
struct ypreq_nokey yprnk;
struct dom_binding *ysd;
struct timeval tv;
- int r;
+ int tries = 0, r;
if (indomain == NULL || *indomain == '\0' ||
strlen(indomain) > YPMAXDOMAIN || inmap == NULL ||
r = clnt_call(ysd->dom_client, YPPROC_FIRST,
xdr_ypreq_nokey, &yprnk, xdr_ypresp_key_val, &yprkv, tv);
if (r != RPC_SUCCESS) {
- clnt_perror(ysd->dom_client, "yp_first: clnt_call");
+ if (tries++)
+ clnt_perror(ysd->dom_client, "yp_first: clnt_call");
ysd->dom_vers = -1;
goto again;
}
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: yp_maplist.c,v 1.4 1996/08/19 08:35:10 tholo Exp $";
+static char *rcsid = "$OpenBSD: yp_maplist.c,v 1.5 1996/12/03 08:20:04 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
struct dom_binding *ysd;
struct ypresp_maplist ypml;
struct timeval tv;
- int r;
+ int tries = 0, r;
again:
if (_yp_dobind(indomain, &ysd) != 0)
r = clnt_call(ysd->dom_client, YPPROC_MAPLIST,
xdr_domainname, &indomain, xdr_ypresp_maplist, &ypml, tv);
if (r != RPC_SUCCESS) {
- clnt_perror(ysd->dom_client, "yp_maplist: clnt_call");
+ if (tries++)
+ clnt_perror(ysd->dom_client, "yp_maplist: clnt_call");
ysd->dom_vers = -1;
goto again;
}
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: yp_master.c,v 1.4 1996/08/19 08:35:10 tholo Exp $";
+static char *rcsid = "$OpenBSD: yp_master.c,v 1.5 1996/12/03 08:20:05 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
struct ypresp_master yprm;
struct ypreq_nokey yprnk;
struct timeval tv;
- int r;
+ int tries = 0, r;
if (indomain == NULL || *indomain == '\0' ||
strlen(indomain) > YPMAXDOMAIN || inmap == NULL ||
r = clnt_call(ysd->dom_client, YPPROC_MASTER,
xdr_ypreq_nokey, &yprnk, xdr_ypresp_master, &yprm, tv);
if (r != RPC_SUCCESS) {
- clnt_perror(ysd->dom_client, "yp_master: clnt_call");
+ if (tries++)
+ clnt_perror(ysd->dom_client, "yp_master: clnt_call");
ysd->dom_vers = -1;
goto again;
}
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: ypmatch_cache.c,v 1.5 1996/09/15 09:32:01 tholo Exp $";
+static char *rcsid = "$OpenBSD: ypmatch_cache.c,v 1.6 1996/12/03 08:20:06 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
struct ypresp_val yprv;
struct timeval tv;
struct ypreq_key yprk;
- int r;
+ int tries = 0, r;
if (indomain == NULL || *indomain == '\0' ||
strlen(indomain) > YPMAXDOMAIN || inmap == NULL ||
r = clnt_call(ysd->dom_client, YPPROC_MATCH,
xdr_ypreq_key, &yprk, xdr_ypresp_val, &yprv, tv);
if (r != RPC_SUCCESS) {
- clnt_perror(ysd->dom_client, "yp_match: clnt_call");
+ if (tries++)
+ clnt_perror(ysd->dom_client, "yp_match: clnt_call");
ysd->dom_vers = -1;
goto again;
}
struct ypreq_key yprk;
struct dom_binding *ysd;
struct timeval tv;
- int r;
+ int tries = 0, r;
if (indomain == NULL || *indomain == '\0' ||
strlen(indomain) > YPMAXDOMAIN || inmap == NULL ||
r = clnt_call(ysd->dom_client, YPPROC_NEXT,
xdr_ypreq_key, &yprk, xdr_ypresp_key_val, &yprkv, tv);
if (r != RPC_SUCCESS) {
- clnt_perror(ysd->dom_client, "yp_next: clnt_call");
+ if (tries++)
+ clnt_perror(ysd->dom_client, "yp_next: clnt_call");
ysd->dom_vers = -1;
goto again;
}