x509/by_dir.c: fix run-away pointer (and potential SEGV)