View | Details | Raw Unified | Return to bug 17310
Collapse All | Expand All

(-)yplib.c (+6 lines)
Lines 623-628 Link Here
623
	struct timeval tv;
623
	struct timeval tv;
624
	struct ypreq_key yprk;
624
	struct ypreq_key yprk;
625
	int r;
625
	int r;
626
	int retries = 0;
626
627
627
	*outval = NULL;
628
	*outval = NULL;
628
	*outvallen = 0;
629
	*outvallen = 0;
Lines 657-662 Link Here
657
#endif
658
#endif
658
659
659
again:
660
again:
661
	retries++;
662
	if (retries > MAX_RETRIES) {
663
	    xdr_free(xdr_ypresp_val, (char *)&yprv);
664
	    return YPERR_YPERR;
665
	}
660
	if( _yp_dobind(indomain, &ysd) != 0)
666
	if( _yp_dobind(indomain, &ysd) != 0)
661
		return YPERR_DOMAIN;
667
		return YPERR_DOMAIN;

Return to bug 17310