mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 17:49:27 +02:00
* netdb: Always return False by GetHostByName() and GetHostByAddr() in the libc implementation.
git-svn-id: trunk@44302 -
This commit is contained in:
parent
c79e21e0dc
commit
8ef8b3bdc0
@ -167,7 +167,9 @@ Function ResolveHostByAddr(HostAddr : THostAddr; Var H : THostEntry) : Boolean;
|
||||
Function ResolveHostByName6(Hostname : String; Var H : THostEntry6) : Boolean;
|
||||
Function ResolveHostByAddr6(HostAddr : THostAddr6; Var H : THostEntry6) : Boolean;
|
||||
|
||||
// H.Addr is returned in the host byte order
|
||||
Function GetHostByName(HostName: String; Var H : THostEntry) : boolean;
|
||||
// Addr is specified in the host byte order
|
||||
Function GetHostByAddr(Addr: THostAddr; Var H : THostEntry) : boolean;
|
||||
|
||||
// N.Addr is returned in the net byte order
|
||||
@ -1803,12 +1805,12 @@ end;
|
||||
|
||||
Function GetHostByName(HostName: String; Var H : THostEntry) : boolean;
|
||||
begin
|
||||
Result:=ResolveHostByName(HostName, H);
|
||||
Result:=False;
|
||||
end;
|
||||
|
||||
Function GetHostByAddr(Addr: THostAddr; Var H : THostEntry) : boolean;
|
||||
begin
|
||||
Result:=ResolveHostByAddr(Addr, H);
|
||||
Result:=False;
|
||||
end;
|
||||
|
||||
function PPCharToString(list: PPChar): string;
|
||||
|
Loading…
Reference in New Issue
Block a user