[PATCH] ensure NULL deref can't possibly happen in is_exported()