|
@@ -1949,7 +1949,7 @@ server_request_free(struct server_request *req)
|
|
|
|
|
|
if (req->port) {
|
|
if (req->port) {
|
|
if (req->port->pending_replies == req) {
|
|
if (req->port->pending_replies == req) {
|
|
- if (req->next_pending)
|
|
|
|
|
|
+ if (req->next_pending && req->next_pending != req)
|
|
req->port->pending_replies = req->next_pending;
|
|
req->port->pending_replies = req->next_pending;
|
|
else
|
|
else
|
|
req->port->pending_replies = NULL;
|
|
req->port->pending_replies = NULL;
|