2010-06-08 19:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/rtl/hbsocket.c
    ! added missing code to duplicate IP6 address passed explicitly
      to hb_socketResolveAddr() - thanks to Mindaugas for reporting
      the problem
This commit is contained in:
Przemyslaw Czerpak
2010-06-08 17:58:23 +00:00
parent 7770c050be
commit 87657b036f
2 changed files with 16 additions and 0 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-06-08 19:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbsocket.c
! added missing code to duplicate IP6 address passed explicitly
to hb_socketResolveAddr() - thanks to Mindaugas for reporting
the problem
2010-06-08 09:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbide/resources/idepreferences.png
+ Icon for "hbIDE Setup" option.

View File

@@ -2802,6 +2802,16 @@ char * hb_socketResolveAddr( const char * szAddr, int af )
#if defined( HB_HAS_INET_PTON )
struct in6_addr sin;
fTrans = inet_pton( AF_INET6, szAddr, &sin ) > 0;
if( fTrans )
{
# if defined( HB_HAS_INET_NTOP )
char buf[ INET6_ADDRSTRLEN ];
szAddr = inet_ntop( AF_INET6, &sin, buf, sizeof( buf ) );
#else
int iTODO;
# endif
szResult = hb_strdup( szAddr );
}
#else
int iTODO;
fTrans = HB_FALSE;