diff options
author | jim-p <jimp@pfsense.org> | 2011-02-01 14:35:04 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-01 14:36:08 -0500 |
commit | 5289dc575b0ed5a8d3c1ca556442cf57525d3fb5 (patch) | |
tree | ff3a4d9337889c4979e03755295a176bea8af7cb /etc/inc | |
parent | b0899ee4581548dde8060370a3063ffd18462883 (diff) | |
download | pfsense-5289dc575b0ed5a8d3c1ca556442cf57525d3fb5.zip pfsense-5289dc575b0ed5a8d3c1ca556442cf57525d3fb5.tar.gz |
Do not use references here when building a ca_chain_array. Really fixes #1231 - CAs are no longer lost when a config write happens at bootup.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/certs.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 7d19045..cc61d9b 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -90,12 +90,12 @@ function & lookup_crl($refid) { function ca_chain_array(& $cert) { if($cert['caref']) { $chain = array(); - $crt =& lookup_ca($cert['caref']); + $crt = lookup_ca($cert['caref']); $chain[] = $crt; while ($crt) { $caref = $crt['caref']; if($caref) - $crt =& lookup_ca($caref); + $crt = lookup_ca($caref); else $crt = false; if($crt) |