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