瀏覽代碼

* Max len 3 per number in dotted quad

git-svn-id: trunk@45368 -
michael 5 年之前
父節點
當前提交
08cb5b7665
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/rtl-extra/src/inc/sockets.inc

+ 2 - 0
packages/rtl-extra/src/inc/sockets.inc

@@ -328,6 +328,8 @@ begin
         end
         end
        else
        else
          Dummy:=IP;
          Dummy:=IP;
+      if Length(Dummy)>3 then 
+        exit;   
       Val (Dummy,k,J);
       Val (Dummy,k,J);
       If J<>0 then
       If J<>0 then
         exit;
         exit;