Update snapshot(2017-10-11)
[platform/upstream/iotivity.git] / service / easy-setup / mediator / richsdk / src / RemoteEnrollee.cpp
index 941239d..7434b41 100755 (executable)
@@ -185,8 +185,17 @@ namespace OIC
                     ES_OK == status->getESResult() )
             {
                 // NOTE: Temporary patch
-                CAEndpoint_t endpoint = {.adapter = CA_ADAPTER_IP};
-
+                CAEndpoint_t endpoint = {
+                    .adapter = CA_ADAPTER_IP,
+                    .flags = CA_DEFAULT_FLAGS,
+                    .port = 0,
+                    .addr = {0},
+                    .ifindex = 0,
+                    .remoteId = {0},
+#if defined (ROUTING_GATEWAY) || defined (ROUTING_EP)
+                    .routeData = {0}
+#endif
+                };
                 OCDevAddr address = m_ocResource->getDevAddr();
                 OICStrcpy(endpoint.addr, MAX_ADDR_STR_SIZE, address.addr);
                 endpoint.port = address.port;