Taylor R Campbell
fd77c4000d
Ensure all calls to getaddrinfo are headed by a block_dns check.
...
If block_dns is set, call getaddrinfo with AI_NUMERICHOST set and
AI_CANONNAME clear.
Some paths may not have set AI_CANONNAME, but it's easier to audit
this way when the getaddrinfo prelude is uniform across call sites,
and the compiler can optimize it away.
2024-01-08 10:22:02 -06:00
Volker Lendecke
2aca5c4fae
heimdal: Fix CID 241943 Uninitialized pointer read
...
In the error case without EXTRA_ADDRESSES we access ignore_addresses
without initialization
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Andreas Schneider <asn@samba.org >
2014-03-24 23:07:51 -05:00
Roland C. Dowdeswell
f0f07ff408
Use krb5_enomem() more consistently in lib/krb5.
2013-02-13 16:15:00 +08:00
Nicolas Williams
c5041352cb
Fixed a bug in the initial loopback ifs patch.
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2011-04-04 22:45:33 -07:00
Nicolas Williams
e7672a71aa
Patch to include non-loopback addresses from loopback interfaces.
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2011-04-04 22:45:33 -07:00
Love Hornquist Astrand
687db64c56
Patch from Secure Endpoints/Asanka Herath for windows support
2009-12-21 08:45:28 +01:00
Love Hörnquist Åstrand
942a821fab
remove RCSID
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-04 06:17:40 +00:00
Love Hörnquist Åstrand
24f5fb0af0
always reset input pointer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 03:02:14 +00:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
5c8a688d16
N_()ify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:23:32 +00:00
Love Hörnquist Åstrand
88232f145e
N_()ify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:19:35 +00:00
Love Hörnquist Åstrand
d542833a1f
use krb5_set_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:26:18 +00:00
Love Hörnquist Åstrand
e7d288e184
Use unsigned where appropriate.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:07 +00:00
Love Hörnquist Åstrand
91351971f7
add KRB5_LIB_FUNCTION to all exported functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Love Hörnquist Åstrand
94ff0be352
(find_all_addresses): address-less point-to-point might not have an
...
address, just ignore those. Reported by Harald Barth.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11613 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-25 15:19:49 +00:00
Johan Danielsson
ce48668948
(get_addrs_int): initialise res if SCAN_INTERFACES is not set
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 20:50:15 +00:00
Assar Westerlund
2c09137118
(find_all_addresses): call free_addresses on ignore_addresses
...
correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-03 18:43:57 +00:00
Johan Danielsson
73326d079c
don't include client addresses that match ignore_addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 22:28:09 +00:00
Assar Westerlund
d27aa3b62e
add some krb5_{set,clear}_error_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Assar Westerlund
060aec09a8
(find_all_addresses): initialize `ret'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-10 20:07:05 +00:00
Johan Danielsson
a1366b4974
(find_all_addresses): use getifaddrs, from Jason Thorpe <thorpej@netbsd.org>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9263 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-05 05:42:18 +00:00
Assar Westerlund
0ecd6dea26
(find_all_addresses): remember to add in the size of ifr->ifr_name
...
when using SA_LEN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8370 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-10 06:14:57 +00:00
Assar Westerlund
755f4a7591
(krb5_get_all_client_addrs): revert back to only returning loopback
...
addresses if there are not other addresses
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8369 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-10 05:54:03 +00:00
Assar Westerlund
ce39c13412
(find_all_addresses): apperently solaris can return EINVAL when the
...
buffer is too small. cope.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8161 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-09 21:05:23 +00:00
Johan Danielsson
c5b916ca6f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
a913b91c3d
(get_addrs_int): fix typo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7409 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-17 16:38:09 +00:00
Assar Westerlund
7fea1f8f7c
(find_all_addresses): change code to actually increment buf_size
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7402 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-17 06:10:42 +00:00
Assar Westerlund
c2d47bfa01
(krb5_get_all_client_addrs): make interaces scanning optional
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7395 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-14 16:46:54 +00:00
Johan Danielsson
92c4c345c6
krb5_get_all_server_addrs shouldn't return extra addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6879 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-27 09:02:23 +00:00
Assar Westerlund
c899f25ff1
(get_addrs_int): try the different ways sequentially instead of just
...
one. this helps if your heimdal was built with v6-support but your
kernel doesn't have it, for example.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6806 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-13 00:10:08 +00:00
Assar Westerlund
b6e362688c
(find_all_addresses): try to use SA_LEN to step over addresses if
...
there's no `sa_lan' field
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6537 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-24 19:53:19 +00:00
Assar Westerlund
4839812e86
conditionalize on HAVE_IPV6 instead of AF_INET6
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6519 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-24 11:02:33 +00:00
Assar Westerlund
4ff4b6c5f0
(find_all_addresses): try to handle the case of getting back an
...
`sockaddr_in6' address when sizeof(struct sockaddr_in6) >
sizeof(struct sockaddr) and we have no sa_len to tell us how large the
address is. This obviously doesn't work with unknown protocol types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6514 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-24 00:45:14 +00:00
Assar Westerlund
02689992d9
new magic flag to get loopback address if there are no other
...
addresses.
(krb5_get_all_client_addrs): use that flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6301 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 06:17:36 +00:00
Johan Danielsson
4b430b62d3
(get_addrs_int): add extra host addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5838 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 18:23:53 +00:00
Johan Danielsson
c028bd28e8
SOCKADDR_HAS_SA_LEN -> HAVE_STRUCT_SOCKADDR_SA_LEN
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5459 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-01 09:51:01 +00:00
Assar Westerlund
4b696f62a9
(krb5_get_all_server_addrs): add. almost the same as
...
krb5_get_all_client_addrs except that it includes loopback addresses
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5261 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-29 07:41:26 +00:00
Assar Westerlund
36743cf478
(find_all_addresses): init j
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5058 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:16:05 +00:00
Johan Danielsson
16dab4b6bd
Fall back to hostname's addresses if other methods fail.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3964 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 00:35:57 +00:00
Assar Westerlund
62143c0e4a
use roken* macros
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3700 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:30:58 +00:00
Assar Westerlund
2ca944d2bc
use new addr_families functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3517 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-21 13:24:31 +00:00
Assar Westerlund
0578c01b1f
compat for different IPv6-APIs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3485 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-12 23:29:58 +00:00
Assar Westerlund
8955ad11fc
fixes and better #ifdef's
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3477 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-12 23:05:02 +00:00
Assar Westerlund
c53f8029e9
rewrote. Now should be able to handle aliases and IPv6 addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3452 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-09 05:49:04 +00:00
Johan Danielsson
1f8193e3b3
Fix loopback test.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3383 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-04 21:39:18 +00:00
Johan Danielsson
8ae8844871
With fewer `sz', things tend to work better.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3285 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-30 11:32:47 +00:00
Johan Danielsson
6909b992e7
fix for broken osf/1 net/if.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3256 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-29 00:19:08 +00:00
Assar Westerlund
e2c0e660f2
restructured
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3219 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 01:28:07 +00:00
Assar Westerlund
9dd1a54675
(krb5_get_all_client_addrs): don't include loopback.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2704 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-05 20:53:51 +00:00