Commit 16f39ee
committed
Fix (attempt) GH-20752: netsnmp_session_init() without system ipv6.
- opening up building peername to non ipv6 supported systems.
- while at it, inet_ntop should not be called with a query size
as large as MAX_NAME_LEN/MAX_OID_LEN but INET6_ADDRSTRLEN max.
- checking in case of non ipv6 support (AF_INET6 can be still
defined in this case).1 parent d9cbc31 commit 16f39ee
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
845 | 848 | | |
846 | 849 | | |
847 | 850 | | |
| |||
888 | 891 | | |
889 | 892 | | |
890 | 893 | | |
891 | | - | |
| 894 | + | |
892 | 895 | | |
893 | 896 | | |
894 | 897 | | |
895 | 898 | | |
896 | 899 | | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
901 | 903 | | |
902 | 904 | | |
903 | 905 | | |
| |||
0 commit comments