fix run-away pointer (and potential SEGV) when adding duplicates in add_cert_dir. PR: 3261 Reported by: Marian Done (Imported from upstream's 83fe7b9c83)
83fe7b9c83