From 7150dbc109a6e5f7b276a9a373aabfb1353a107a Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 18 Jul 2022 02:31:19 +0000 Subject: [PATCH] use same way of reporting error as yp_bind.c Though really, should we be splatting to stdout/stderr? The mysteries of ancient code... --- lib/libc/yp/yp_all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/yp/yp_all.c b/lib/libc/yp/yp_all.c index 78dd259d496..04a6ebe2b49 100644 --- a/lib/libc/yp/yp_all.c +++ b/lib/libc/yp/yp_all.c @@ -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 * 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); -- 2.20.1