chiark / gitweb /
yaid.c (cancel_proxy): Reorder destruction a little.
[yaid] / yaid.c
diff --git a/yaid.c b/yaid.c
index 2548cafb36c6a4ad3570c6cbc4c6bd7bbb34ed23..cc3bb47f9eb8747ea0f92da12b0a1a41d1efb6e9 100644 (file)
--- a/yaid.c
+++ b/yaid.c
@@ -365,8 +365,8 @@ static void cancel_proxy(struct proxy *px)
     selbuf_destroy(&px->b);
     free_writebuf(&px->wb);
   }
-  selbuf_enable(&px->c->b);
   px->c->px = 0;
+  selbuf_enable(&px->c->b);
   xfree(px);
 }