소스 검색

removed check for positive ports

we have an ulong, so it could not be negative and 0 is not a problem in the following code
Holger Jeromin 9 년 전
부모
커밋
c035c1f539
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      examples/networklayer_tcp.c

+ 0 - 1
examples/networklayer_tcp.c

@@ -502,7 +502,6 @@ ClientNetworkLayerTCP_connect(UA_ConnectionConfig localConf, char *endpointUrl,
             unsigned long int tempulong = strtoul(&endpointUrl[portpos+1], &endPtr, 10);
             if (ERANGE != errno &&
                 tempulong < UINT16_MAX &&
-                tempulong > 0 &&
                 endPtr != &endpointUrl[portpos+1])
             {
                 port = (UA_UInt16)tempulong;