snabbco / snabb

Snabb: Simple and fast packet networking
Apache License 2.0
2.98k stars 301 forks source link

core.app: fix a bug related to getting app zone name #1485

Closed eugeneia closed 2 years ago

eugeneia commented 2 years ago

If running an app defined in a script via snabb snsh, getfenv(app.start).__NAME would be undefined and trigger our error handler for undefined variables.

Use rawget to avoid this, and properly fallback to the app name.