X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp.c;h=391706f1d1abdee0ecf8a8edf7b2dc45f6cdd40d;hb=36555fb967087c22ec8854b4cad158f7d2688c5b;hp=a79304ca8114b717028e9f8d5e3ede76948e6ccf;hpb=62454c16e18ba9ed03b5bc55ea59d28d666d8a48;p=utcp diff --git a/utcp.c b/utcp.c index a79304c..391706f 100644 --- a/utcp.c +++ b/utcp.c @@ -930,6 +930,8 @@ int utcp_shutdown(struct utcp_connection *c, int dir) { int utcp_close(struct utcp_connection *c) { if(utcp_shutdown(c, SHUT_RDWR)) return -1; + c->recv = NULL; + c->poll = NULL; c->reapable = true; return 0; } @@ -946,6 +948,8 @@ int utcp_abort(struct utcp_connection *c) { return -1; } + c->recv = NULL; + c->poll = NULL; c->reapable = true; switch(c->state) {