|
@@ -66,6 +66,10 @@ START_TEST(EndpointUrl_split) {
|
|
ck_assert_uint_eq(port, 1234);
|
|
ck_assert_uint_eq(port, 1234);
|
|
ck_assert(UA_String_equal(&path, &expectedPath));
|
|
ck_assert(UA_String_equal(&path, &expectedPath));
|
|
|
|
|
|
|
|
+ // invalid IPv6: missing ]
|
|
|
|
+ endPointUrl = UA_STRING("opc.tcp://[2001:0db8:85a3::8a2e:0370:7334");
|
|
|
|
+ ck_assert_uint_eq(UA_parseEndpointUrl(&endPointUrl, &hostname, &port, &path), UA_STATUSCODE_BADTCPENDPOINTURLINVALID);
|
|
|
|
+
|
|
// empty hostname
|
|
// empty hostname
|
|
endPointUrl = UA_STRING("opc.tcp://:");
|
|
endPointUrl = UA_STRING("opc.tcp://:");
|
|
port = 0;
|
|
port = 0;
|