yaid.c (cancel_proxy): Reorder destruction a little.
[yaid] / yaid.c
diff --git a/yaid.c b/yaid.c
index 2548caf..cc3bb47 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);
 }