forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5f3aa30
committed
Avoid potential pfree on NULL on OpenSSL errors
Guard against the pointer being NULL before pfreeing upon an errorreturned from OpenSSL. Also handle errors from X509_NAME_print_exwhich can return -1 on memory allocation errors.Backpatch down to v15 where the code was added.Author: Sergey Shinderuk <s.shinderuk@postgrespro.ru>Discussion:https://postgr.es/m/8db5374d-32e0-6abb-d402-40762511eff2@postgrespro.ruBackpatch-through: v151 parente59fcbd commit5f3aa30
1 file changed
+17
-8
lines changedLines changed: 17 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
620 | 620 |
| |
621 | 621 |
| |
622 | 622 |
| |
623 |
| - | |
624 |
| - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
625 | 628 |
| |
626 | 629 |
| |
627 | 630 |
| |
| |||
632 | 635 |
| |
633 | 636 |
| |
634 | 637 |
| |
635 |
| - | |
636 |
| - | |
| 638 | + | |
| 639 | + | |
637 | 640 |
| |
638 | 641 |
| |
639 |
| - | |
640 |
| - | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
641 | 647 |
| |
642 | 648 |
| |
643 | 649 |
| |
| |||
651 | 657 |
| |
652 | 658 |
| |
653 | 659 |
| |
654 |
| - | |
655 |
| - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
656 | 665 |
| |
657 | 666 |
| |
658 | 667 |
| |
|
0 commit comments
Comments
(0)