Fixing null pointer dereference bug in parse_x509.