X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsession%2Fapplication.c;h=01dc818216d13032575c52e90fbcf656d751e5eb;hb=d12ff50773b0b078ec6fa94201035b7d7bcc7d34;hp=f3628966ae5cd3e6f307142b036acc160537263c;hpb=d85de68ec3f72888099172fffd45a90a43018155;p=vpp.git diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c index f3628966ae5..01dc818216d 100644 --- a/src/vnet/session/application.c +++ b/src/vnet/session/application.c @@ -94,6 +94,8 @@ app_worker_map_free (application_t * app, app_worker_map_t * map) static app_worker_map_t * app_worker_map_get (application_t * app, u32 map_index) { + if (pool_is_free_index (app->worker_maps, map_index)) + return 0; return pool_elt_at_index (app->worker_maps, map_index); }