[php-src] PR #21403: openssl: Fix error propagation in csr exports
| From: | ndossche | Date: | Tue, 10 Mar 2026 14:20:14 +0000 |
| Subject: | [php-src] PR #21403: openssl: Fix error propagation in csr exports | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35156@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21403
Author: ndossche
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.
This was found by a hybrid static-dynamic analyser that looks for inconsistent handling of error
checks in bindings.