From b057311da3a1ea589063f693bdb024940b4afeaa Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 29 Jan 2010 17:35:08 +0000 Subject: [PATCH] 2010-01-29 18:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbsocket.c * do not try to resolve NULL or empty addresses in hb_socketResolveAddr() --- harbour/ChangeLog | 4 ++++ harbour/src/rtl/hbsocket.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 41981777fd..a0a1c1cce4 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-01-29 18:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/hbsocket.c + * do not try to resolve NULL or empty addresses in hb_socketResolveAddr() + 2010-01-29 09:19 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbide/hbide.prg * contrib/hbide/ideactions.prg diff --git a/harbour/src/rtl/hbsocket.c b/harbour/src/rtl/hbsocket.c index f697c5ab46..a0e5578ff3 100644 --- a/harbour/src/rtl/hbsocket.c +++ b/harbour/src/rtl/hbsocket.c @@ -2725,6 +2725,9 @@ char * hb_socketResolveAddr( const char * szAddr, int af ) char * szResult = NULL; HB_BOOL fTrans = HB_FALSE; + if( !szAddr || !*szAddr ) + return NULL; + if( af == HB_SOCKET_PF_INET ) { struct in_addr sin;