- Notifications
You must be signed in to change notification settings - Fork28
Commit62fe410
Neil Conway
Minor fix for LDAP authentication: if an error occurs, we need to
manually release the LDAP handle via ldap_unbind(). This isn't asignificant problem in practice because an error eventually resultsin exiting the process, but we can cleanup correctly without toomuch pain.In passing, fix an error in snprintf() usage: the "size" parameterto snprintf() is the size of the destination buffer, including spacefor the NUL terminator. Also, depending on the value of NAMEDATALEN,the old coding could have allowed for a buffer overflow.1 parent76d5667 commit62fe410
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
| 723 | + | |
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
| 753 | + | |
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
| 769 | + | |
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
802 | 803 | | |
803 | | - | |
| 804 | + | |
804 | 805 | | |
805 | 806 | | |
806 | 807 | | |
| |||
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
| 831 | + | |
830 | 832 | | |
831 | 833 | | |
832 | 834 | | |
833 | 835 | | |
834 | 836 | | |
835 | 837 | | |
836 | 838 | | |
| 839 | + | |
837 | 840 | | |
838 | 841 | | |
839 | 842 | | |
840 | 843 | | |
841 | 844 | | |
842 | 845 | | |
843 | 846 | | |
844 | | - | |
| 847 | + | |
845 | 848 | | |
846 | 849 | | |
847 | 850 | | |
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
851 | 854 | | |
| 855 | + | |
852 | 856 | | |
853 | | - | |
| 857 | + | |
854 | 858 | | |
855 | 859 | | |
856 | 860 | | |
857 | 861 | | |
858 | | - | |
| 862 | + | |
859 | 863 | | |
860 | 864 | | |
861 | 865 | | |
| |||
0 commit comments
Comments
(0)