Skip to content

Commit

Permalink
Merge b7575eb into 0371ef4
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Nov 2, 2018
2 parents 0371ef4 + b7575eb commit d07a0f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/ua_network_pubsub_ethernet.c
Expand Up @@ -154,7 +154,8 @@ UA_PubSubChannelEthernet_open(const UA_PubSubConnectionConfig *connectionConfig)
}

/* get interface index */
struct ifreq ifreq = { 0 };
struct ifreq ifreq;
memset(&ifreq, 0, sizeof(struct ifreq));
strncpy(ifreq.ifr_name, (char*)address->networkInterface.data,
UA_MIN(address->networkInterface.length, sizeof(ifreq.ifr_name)-1));

Expand Down

0 comments on commit d07a0f4

Please sign in to comment.