openssd: segfault on accessing ap->cur

We might want to initialize ap->cur before we try to test if it is
set.