Skip to content

Commit 2301f96

Browse files
Merge pull request #199 from ramlco/develop
Fix corrupt clientList bug in TransportArbitrator
2 parents b01be82 + 80d602e commit 2301f96

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

erpc_c/infra/erpc_transport_arbitrator.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,8 @@ TransportArbitrator::PendingClientInfo *TransportArbitrator::addPendingClient(vo
191191
}
192192

193193
// Add to active list.
194-
if (m_clientList == NULL)
195-
{
196-
m_clientList = info;
197-
}
198-
else
199-
{
200-
info->m_next = m_clientList;
201-
m_clientList = info;
202-
}
194+
info->m_next = m_clientList;
195+
m_clientList = info;
203196

204197
return info;
205198
}

0 commit comments

Comments
 (0)