diff options
author | trociny <trociny@FreeBSD.org> | 2011-04-17 16:18:45 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-04-17 16:18:45 +0000 |
commit | 4ef25c883e5478b277d1dd30131a89b0fb577390 (patch) | |
tree | f3d9e28d6e9dd67e05c06bb0994870ab00550b6c /sbin/hastctl/hastctl.c | |
parent | 1584693544b770829a7352a4644c0d9ef46f5747 (diff) | |
download | FreeBSD-src-4ef25c883e5478b277d1dd30131a89b0fb577390.zip FreeBSD-src-4ef25c883e5478b277d1dd30131a89b0fb577390.tar.gz |
Remove hast_proto_recv(). It was used only in one place, where
hast_proto_recv_hdr() may be used. This also fixes the issue
(introduced by r220523) with hastctl, which crashed on assert in
hast_proto_recv_data().
Suggested and approved by: pjd (mentor)
Diffstat (limited to 'sbin/hastctl/hastctl.c')
-rw-r--r-- | sbin/hastctl/hastctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastctl/hastctl.c b/sbin/hastctl/hastctl.c index 21b1217..0ab0bd4 100644 --- a/sbin/hastctl/hastctl.c +++ b/sbin/hastctl/hastctl.c @@ -491,7 +491,7 @@ main(int argc, char *argv[]) } nv_free(nv); /* ...and receive reply. */ - if (hast_proto_recv(NULL, controlconn, &nv, NULL, 0) < 0) { + if (hast_proto_recv_hdr(controlconn, &nv) < 0) { pjdlog_exit(EX_UNAVAILABLE, "cannot receive reply from hastd via %s", cfg->hc_controladdr); |