lcore.org gitweb
/
lcore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9951872
)
zipplet: fix range check exception in fpc 3 on tcp connect
author
beware
<beware@bircd.org>
Fri, 7 Apr 2017 02:29:15 +0000
(
02:29
+0000)
committer
beware
<beware@bircd.org>
Fri, 7 Apr 2017 02:29:15 +0000
(
02:29
+0000)
git-svn-id: file:///svnroot/lcore/trunk@148
b1de8a11
-f9be-4011-bde0-
cc7ace90066a
binipstuff.pas
patch
|
blob
|
history
diff --git
a/binipstuff.pas
b/binipstuff.pas
index e7d891c1eade8ac98448bcbc1d3ce5810f92cdad..1d7a7c23c74fbfeef33d2ee4f091fe256f03a905 100644
(file)
--- a/
binipstuff.pas
+++ b/
binipstuff.pas
@@
-300,7
+300,10
@@
begin
{$endif}
\r
\r
{try v4}
\r
- binip.ip := htonl(longip(s));
\r
+ // zipplet: htonl() expects a uint32 but longip() spits out longint.
\r
+ // Because longip() is deprecated, we do not fix it but typecast.
\r
+ //binip.ip := htonl(longip(s));
\r
+ binip.ip := htonl(uint32(longip(s)));
\r
if (binip.ip <> 0) or (s = '0.0.0.0') then begin
\r
result := true;
\r
binip.family := AF_INET;
\r