diff options
author | naddy <naddy@openbsd.org> | 2019-04-01 04:18:54 +0000 |
---|---|---|
committer | naddy <naddy@openbsd.org> | 2019-04-01 04:18:54 +0000 |
commit | ec13f15c00d9e0796322792c6445bffd4d266bb1 (patch) | |
tree | a64a9a91efd11bfc53fdb3e08afd1a47fa440613 /usr.sbin/acme-client | |
parent | Change a strange "} if" into the intended "} else if". No practial (diff) | |
download | wireguard-openbsd-ec13f15c00d9e0796322792c6445bffd4d266bb1.tar.xz wireguard-openbsd-ec13f15c00d9e0796322792c6445bffd4d266bb1.zip |
repair confusing "} if"; from florian@
Diffstat (limited to 'usr.sbin/acme-client')
-rw-r--r-- | usr.sbin/acme-client/chngproc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/acme-client/chngproc.c b/usr.sbin/acme-client/chngproc.c index 6e4089c8590..218b608000d 100644 --- a/usr.sbin/acme-client/chngproc.c +++ b/usr.sbin/acme-client/chngproc.c @@ -1,4 +1,4 @@ -/* $Id: chngproc.c,v 1.12 2017/01/24 13:32:55 jsing Exp $ */ +/* $Id: chngproc.c,v 1.13 2019/04/01 04:18:54 naddy Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -106,10 +106,12 @@ chngproc(int netsock, const char *root) if (fd == -1) { warn("%s", fs[fsz - 1]); goto out; - } if (write(fd, fmt, strlen(fmt)) == -1) { + } + if (write(fd, fmt, strlen(fmt)) == -1) { warn("%s", fs[fsz - 1]); goto out; - } else if (close(fd) == -1) { + } + if (close(fd) == -1) { warn("%s", fs[fsz - 1]); goto out; } |