Revision 5289dc57
Added by Jim Pingle over 14 years ago
etc/inc/certs.inc | ||
---|---|---|
90 | 90 |
function ca_chain_array(& $cert) { |
91 | 91 |
if($cert['caref']) { |
92 | 92 |
$chain = array(); |
93 |
$crt =& lookup_ca($cert['caref']);
|
|
93 |
$crt = lookup_ca($cert['caref']); |
|
94 | 94 |
$chain[] = $crt; |
95 | 95 |
while ($crt) { |
96 | 96 |
$caref = $crt['caref']; |
97 | 97 |
if($caref) |
98 |
$crt =& lookup_ca($caref);
|
|
98 |
$crt = lookup_ca($caref); |
|
99 | 99 |
else |
100 | 100 |
$crt = false; |
101 | 101 |
if($crt) |
Also available in: Unified diff
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.