X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp.c;h=5090b7dd2d777dc24142928c61e6b704a0c58a19;hb=5bb23ecd098eac639641e2b3d62eb8744e0efef0;hp=d060654a037fec7e4ae9c69986960778bc5ed2d5;hpb=8b4114e52f69b9292efb282e49ed4d90699ceeb8;p=vpp.git diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index d060654a037..5090b7dd2d7 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -1165,6 +1165,8 @@ static transport_connection_t * tcp_session_get_transport (u32 conn_index, u32 thread_index) { tcp_connection_t *tc = tcp_connection_get (conn_index, thread_index); + if (PREDICT_FALSE (!tc)) + return 0; return &tc->connection; }