mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 00:09:15 -04:00
http://sourceforge.net/tracker/index.php?func=detail&aid=1534483&group_id=52781&atid=468021 PR: ports/103810 Submitted by: Simun Mikecin <numisemis at yahoo.com>
20 lines
918 B
C
20 lines
918 B
C
--- soapcpp2/stdsoap2.c.orig Mon Jun 26 21:36:38 2006
|
|
+++ soapcpp2/stdsoap2.c Fri Sep 29 14:22:51 2006
|
|
@@ -3282,7 +3282,7 @@
|
|
soap->errnum = h_errno;
|
|
}
|
|
#elif defined(HAVE_GETHOSTBYNAME_R)
|
|
- host = gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &soap->errnum);
|
|
+ gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum);
|
|
#elif defined(VXWORKS)
|
|
/* If the DNS resolver library resolvLib has been configured in the vxWorks
|
|
* image, a query for the host IP address is sent to the DNS server, if the
|
|
@@ -7616,7 +7616,7 @@
|
|
break;
|
|
}
|
|
if (!tp)
|
|
- { tp = (struct soap_attribute*)SOAP_MALLOC(soap, sizeof(struct soap_attribute) + strlen(soap->tmpbuf));
|
|
+ { tp = (struct soap_attribute*)SOAP_MALLOC(soap, sizeof(struct soap_attribute) + strlen(soap->tmpbuf) + 1);
|
|
if (!tp)
|
|
return soap->error = SOAP_EOM;
|
|
strcpy(tp->name, soap->tmpbuf);
|