forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9dc8580
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 also 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 parent77dc816 commit9dc8580
1 file changed
+17
-8
lines changedLines changed: 17 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
615 | 615 |
| |
616 | 616 |
| |
617 | 617 |
| |
618 |
| - | |
619 |
| - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
620 | 623 |
| |
621 | 624 |
| |
622 | 625 |
| |
| |||
627 | 630 |
| |
628 | 631 |
| |
629 | 632 |
| |
630 |
| - | |
631 |
| - | |
| 633 | + | |
| 634 | + | |
632 | 635 |
| |
633 | 636 |
| |
634 |
| - | |
635 |
| - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
636 | 642 |
| |
637 | 643 |
| |
638 | 644 |
| |
| |||
646 | 652 |
| |
647 | 653 |
| |
648 | 654 |
| |
649 |
| - | |
650 |
| - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
651 | 660 |
| |
652 | 661 |
| |
653 | 662 |
| |
|
0 commit comments
Comments
(0)