From 5722660af09b955d9b51901b11a8a0dcc6b7c2ec Mon Sep 17 00:00:00 2001 From: Giannakos Filippos Date: Mon, 15 Oct 2012 18:42:16 +0300 Subject: [PATCH] reset portno<->port associtation on port binding failure --- xseg/xseg/xseg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xseg/xseg/xseg.c b/xseg/xseg/xseg.c index 41715f8..b13f81c 100644 --- a/xseg/xseg/xseg.c +++ b/xseg/xseg/xseg.c @@ -1627,6 +1627,7 @@ struct xseg_port *xseg_bind_port(struct xseg *xseg, uint32_t req, void * sd) } if (port) { xseg_free_port(xseg, port); + xseg->ports[portno] = 0; port = NULL; } out: -- 1.7.10.4