use same way of reporting error as yp_bind.c
authorderaadt <deraadt@openbsd.org>
Mon, 18 Jul 2022 02:31:19 +0000 (02:31 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 18 Jul 2022 02:31:19 +0000 (02:31 +0000)
Though really, should we be splatting to stdout/stderr?  The mysteries
of ancient code...

lib/libc/yp/yp_all.c

index 78dd259..04a6ebe 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: yp_all.c,v 1.14 2022/07/17 03:08:58 deraadt Exp $ */
+/*     $OpenBSD: yp_all.c,v 1.15 2022/07/18 02:31:19 deraadt Exp $ */
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com>
  * All rights reserved.
@@ -132,7 +132,7 @@ again:
        if (ypbinding->dom_client == NULL) {
                close(ypbinding->dom_socket);
                free(ypbinding);
-               printf("clnttcp_create failed\n");
+               clnt_pcreateerror("clnttcp_create");
                goto again;
        }
        clnt_control(ypbinding->dom_client, CLSET_CONNECTED, &connected);