search for: eai_memory

Displaying 12 results from an estimated 12 matches for "eai_memory".

2000 Jan 27
0
more NetBSD patches, for OpenSSH V1.2.2
.../* XXX -- ssh doesn't use sa_len */ @@ -83,25 +83,27 @@ else port = 0; if (hints && hints->ai_flags & AI_PASSIVE) - if (*res = malloc_ai(port, htonl(0x00000000))) + if ((*res = malloc_ai(port, htonl(0x00000000))) != NULL) return 0; else return EAI_MEMORY; - if (!hostname) - if (*res = malloc_ai(port, htonl(0x7f000001))) + if (!hostname) { + if ((*res = malloc_ai(port, htonl(0x7f000001))) != NULL) return 0; else return EAI_MEMORY; - if (inet_addr(hostname) != -1) - if (*res = malloc_ai(port, inet_addr(hostname))) + }...
2000 Jan 18
0
More NetBSD patches
.../* XXX -- ssh doesn't use sa_len */ @@ -83,25 +83,27 @@ else port = 0; if (hints && hints->ai_flags & AI_PASSIVE) - if (*res = malloc_ai(port, htonl(0x00000000))) + if ((*res = malloc_ai(port, htonl(0x00000000))) != NULL) return 0; else return EAI_MEMORY; - if (!hostname) - if (*res = malloc_ai(port, htonl(0x7f000001))) + if (!hostname) { + if ((*res = malloc_ai(port, htonl(0x7f000001))) != NULL) return 0; else return EAI_MEMORY; - if (inet_addr(hostname) != -1) - if (*res = malloc_ai(port, inet_addr(hostname))) + }...
2019 Dec 04
4
Dovecot 2.3.9 fails on FreeBSD
...leted by RFC 2553bis-02 */ { EAI_ADDRFAMILY, NET_HOSTERROR_TYPE_NOT_FOUND }, +#endif { EAI_AGAIN, NET_HOSTERROR_TYPE_NAMESERVER }, { EAI_BADFLAGS, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, { EAI_FAIL, NET_HOSTERROR_TYPE_NAMESERVER }, { EAI_FAMILY, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, { EAI_MEMORY, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, +#ifdef EAI_NODATA /* Obsoleted by RFC 2553bis-02 */ { EAI_NODATA, NET_HOSTERROR_TYPE_NOT_FOUND }, +#endif { EAI_NONAME, NET_HOSTERROR_TYPE_NOT_FOUND }, { EAI_SERVICE, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, { EAI_SOCKTYPE, NET_HOSTERROR_TYPE_INTERNAL_...
2000 Sep 25
2
off-by-one errors in getnameinfo()
Description: getnameinfo() (confirmed for CVS version 1.14.2.1) does this sort of buffer size checks (these is just two of many cases): if (strlen(sp->s_name) > servlen) return ENI_MEMORY; strcpy(serv, sp->s_name); ... if (strlen(hp->h_name) > hostlen) {
2001 Jan 22
0
Patches for failing build & bus error on SPARC/Linux
...OR(a,b) pam_strerror((a),(b)) #endif *** fake-getnameinfo.c.orig Fri Sep 29 00:59:14 2000 --- fake-getnameinfo.c Mon Jan 22 16:19:39 2001 *************** *** 30,39 **** if (host) { if (flags & NI_NUMERICHOST) { ! if (strlen(inet_ntoa(sin->sin_addr)) >= hostlen) return EAI_MEMORY; ! strcpy(host, inet_ntoa(sin->sin_addr)); return 0; } else { hp = gethostbyaddr((char *)&sin->sin_addr, --- 30,43 ---- if (host) { if (flags & NI_NUMERICHOST) { ! /* inet_ntoa wants aligned data on SPARC */ ! struct in_addr align; ! bcopy((char...
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...what we want */ if (hints->ai_socktype) @@ -182,21 +195,24 @@ addr = htonl(0x00000000); if (hostname && inet_aton(hostname, &in) != 0) addr = in.s_addr; - *res = malloc_ai(port, addr, hints); + *res = malloc_ai(port, addr, hints, NULL); if (*res == NULL) return (EAI_MEMORY); return (0); } if (!hostname) { - *res = malloc_ai(port, htonl(0x7f000001), hints); + *res = malloc_ai(port, htonl(0x7f000001), hints, NULL); if (*res == NULL) return (EAI_MEMORY); return (0); } if (inet_aton(hostname, &in)) { - *res = malloc_ai(port, in.s_addr,...
2002 Dec 13
1
Help compiling tinc in Solaris 2.6
...ke-getnameinfo.c' || echo './'`fake-getnameinfo.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory fake-getnameinfo.c: In function `getnameinfo': fake-getnameinfo.c:38: `EAI_MEMORY' undeclared (first use in this function) fake-getnameinfo.c:38: (Each undeclared identifier is reported only once fake-getnameinfo.c:38: for each function it appears in.) fake-getnameinfo.c:44: `NI_NUMERICHOST' undeclared (first use in this function) fake-getnameinfo.c:54: `EAI_NODATA'...
2019 Dec 04
0
Dovecot 2.3.9 fails on FreeBSD
...t; { EAI_AGAIN, NET_HOSTERROR_TYPE_NAMESERVER }, > { EAI_BADFLAGS, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, > { EAI_FAIL, NET_HOSTERROR_TYPE_NAMESERVER }, > { EAI_FAMILY, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, > { EAI_MEMORY, NET_HOSTERROR_TYPE_INTERNAL_ERROR }, > +#ifdef EAI_NODATA /* Obsoleted by RFC 2553bis-02 */ > { EAI_NODATA, NET_HOSTERROR_TYPE_NOT_FOUND }, > +#endif > { EAI_NONAME, NET_HOSTERROR_TYPE_NOT_FOUND }, > { EAI_SERVICE, NET_HOSTERROR_TYPE_I...
2008 Oct 20
2
[PATCH] Compilation of tftp-hpa's Git HEAD with no IPv6, and misc
...e AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose + returned address type.. */ +#endif + #ifndef EAI_NONAME #define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ #endif @@ -335,15 +340,16 @@ const char *gai_strerror(int); #define EAI_MEMORY -10 /* Memory allocation failure. */ #endif #ifndef EAI_SYSTEM -#define EAI_SYSTEM -11 /* System error returned in rrno'. */ +#define EAI_SYSTEM -11 /* System error returned in `errno'. */ #endif #endif -#ifndef HAVE_INET_NTOP -const char *inet_ntop(int, const v...
2019 Dec 04
4
Dovecot 2.3.9 fails on FreeBSD
Hi I've just tried to build the latest Dovecot 2.3.9 on FreeBSD 11.3. Without success...It fails on the following commit which was introduced in 2.3.9: https://github.com/dovecot/core/commit/c85f1bc3ce612c736c9d2c468cc08306db1b5851 Following output is the build log: https://pastebin.com/3nvSeDn8 So I guess it has to do with some changes FreeBSD made: https://reviews.freebsd.org/D18630
2018 May 01
1
cannot compile 4-8-stable or 4-8-test
...rsion] dn = ads_get_dn(ads, talloc_tos(), res); ^ In file included from ../source3/include/ads.h:9:0, from ../libgpo/gpo.h:23, from ../libgpo/pygpo.c:23: ../libgpo/pygpo.c:354:22: error: ‘LDAP_NO_MEMORY’ undeclared (first use in this function); did you mean ‘EAI_MEMORY’? status = ADS_ERROR(LDAP_NO_MEMORY); ^ ../source3/libads/ads_status.h:43:65: note: in definition of macro ‘ADS_ERROR_LDAP’ #define ADS_ERROR_LDAP(rc) ads_build_error(ENUM_ADS_ERROR_LDAP, rc, 0) ^~ ../libgpo/...
2000 Dec 27
2
patch to support hurd-i386
...name = malloc(name_size); + if (name == NULL) + fatal("get_remote_hostname: not enough space for hostname"); + while ((i = getnameinfo((struct sockaddr *)&from, fromlen, name, + name_size, NULL, 0, NI_NAMEREQD)) + == EAI_MEMORY) { + name_size <<= 1; + name = realloc(name, name_size); + if (name == NULL) + fatal("get_remote_hostname: not enough space for hostname"); + } + if (i == 0) { /* Got host name. */ -...