[Libguestfs] [PATCH nbdkit v2 1/4] server: Replace another memset with a call to reset_b_conn_handle.

Richard W.M. Jones rjones at redhat.com
Thu Sep 19 14:33:48 UTC 2019


Updates commit 5cdf4d6c89bdb802be234f2fccc8157b7228b546
and commit a6b88b195a959b17524d1c8353fd425d4891dc5f.
---
 server/backend.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/backend.c b/server/backend.c
index 64dbf7d..6c102f9 100644
--- a/server/backend.c
+++ b/server/backend.c
@@ -209,8 +209,7 @@ backend_close (struct backend *b, struct connection *conn)
   debug ("%s: close", b->name);
 
   b->close (b, conn);
-  memset (h, -1, sizeof *h);
-  h->handle = NULL;
+  reset_b_conn_handle (h);
 }
 
 void
-- 
2.23.0




More information about the Libguestfs mailing list