diff options
Diffstat (limited to 'regress/usr.sbin/rpki-client')
-rw-r--r-- | regress/usr.sbin/rpki-client/test-http.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/regress/usr.sbin/rpki-client/test-http.c b/regress/usr.sbin/rpki-client/test-http.c index 830bb9ca6f5..b28cc720c44 100644 --- a/regress/usr.sbin/rpki-client/test-http.c +++ b/regress/usr.sbin/rpki-client/test-http.c @@ -149,12 +149,8 @@ main(int argc, char **argv) err(1, "open %s", file); http_request(req++, uri, mod, outfd); - switch (msgbuf_write(&httpq)) { - case 0: - errx(1, "write: connection closed"); - case -1: + if (msgbuf_write(&httpq) == -1) err(1, "write"); - } error = http_response(http); return error; } |