Blame SOURCES/ypserv-2.31-map-update.patch

97edbe
https://github.com/thkukuk/ypserv/pull/2
97edbe
diff --git a/ypxfr/ypxfr.c b/ypxfr/ypxfr.c
97edbe
index 358ac8d..d44773b 100644
97edbe
--- a/ypxfr/ypxfr.c
97edbe
+++ b/ypxfr/ypxfr.c
97edbe
@@ -517,8 +517,8 @@ ypxfr (char *map, char *source_host, char *source_domain, char *target_domain,
97edbe
   if (ypproc_order_2 (&req_nokey, &resp_order, clnt_udp) != RPC_SUCCESS)
97edbe
     {
97edbe
       log_msg (clnt_sperror (clnt_udp, "ypproc_order_2"));
97edbe
-      masterOrderNum = time (NULL); /* We set it to the current time.
97edbe
-                                       So a new map will be always newer. */
97edbe
+      clnt_destroy (clnt_udp);
97edbe
+      return YPXFR_YPERR;
97edbe
     }
97edbe
   else if (resp_order.stat != YP_TRUE)
97edbe
     {