Commit 4a16d22
authored
openssl: Fix error propagation in csr exports (php#21403)
If the print fails, then the write is still executed, resulting in a
partial export without any way of the user knowing this happened.
Fix this by only returning true if all writes succeed.1 parent 7831244 commit 4a16d22
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3176 | 3176 | | |
3177 | 3177 | | |
3178 | 3178 | | |
| 3179 | + | |
3179 | 3180 | | |
3180 | | - | |
3181 | | - | |
| 3181 | + | |
3182 | 3182 | | |
3183 | 3183 | | |
3184 | 3184 | | |
| |||
3227 | 3227 | | |
3228 | 3228 | | |
3229 | 3229 | | |
3230 | | - | |
3231 | | - | |
3232 | | - | |
| 3230 | + | |
3233 | 3231 | | |
3234 | 3232 | | |
3235 | 3233 | | |
| |||
0 commit comments