--
You received this message because you are subscribed to the Google Groups "Beckhoff Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beckhoff-linu...@googlegroups.com.
To post to this group, send email to beckhof...@googlegroups.com.
Visit this group at http://groups.google.com/group/beckhoff-linux?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Do a check that:
To unsubscribe from this group and stop receiving emails from it, send an email to beckhoff-linux+unsubscribe@googlegroups.com.
To post to this group, send email to beckhoff-linux@googlegroups.com.
Visit this group at http://groups.google.com/group/beckhoff-linux?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
Håkon
can it be like this:
diff --git a/src/ads.c b/src/ads.c
index 2f0e1a1..3a14e3c 100755
@@ -842,6 +842,9 @@ int ADSGetLocalAMSId(AMSNetID * id)
struct ifaddrs *cur;
for (cur = list; cur != NULL; cur = cur->ifa_next) {
+ if (cur->ifa_addr == NULL) {
+ break;
+ }
if ((cur->ifa_addr->sa_family == AF_INET)
&& (strcmp(cur->ifa_name, "lo") != 0)) {
addrStruct = (struct sockaddr_in *)cur->ifa_addr;
if ifa_addr is null, it means that it is an ethernet link that is down, right?
--
You received this message because you are subscribed to the Google Groups "Beckhoff Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beckhoff-linu...@googlegroups.com.
To post to this group, send email to beckhof...@googlegroups.com.
Visit this group at http://groups.google.com/group/beckhoff-linux?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to beckhoff-linux+unsubscribe@googlegroups.com.
To post to this group, send email to beckhoff-linux@googlegroups.com.
Visit this group at http://groups.google.com/group/beckhoff-linux?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
Håkon
To unsubscribe from this group and stop receiving emails from it, send an email to beckhoff-linu...@googlegroups.com.
To post to this group, send email to beckhof...@googlegroups.com.
Visit this group at http://groups.google.com/group/beckhoff-linux?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to beckhoff-linu...@googlegroups.com.
To post to this group, send email to beckhof...@googlegroups.com.
Visit this group at http://groups.google.com/group/beckhoff-linux?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.