string.
Bug: https://jira.iotivity.org/browse/IOT-1840
Change-Id: I6950ba6a06965f94848d7fb53d13f416fa4906b3
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17431
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
)
{
// checking addr is ipv4 or not
- if (endpoint->family == OC_IP_USE_V4)
+ if (endpoint->family & OC_IP_USE_V4)
{
// ipv4
sprintf(buf, "%s://%s:%d", endpoint->tps, endpoint->addr, endpoint->port);