]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
net.c fix from AQ.
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Fri, 29 Apr 2016 14:43:57 +0000 (16:43 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Fri, 29 Apr 2016 14:43:57 +0000 (16:43 +0200)
net.c

diff --git a/net.c b/net.c
index 60b2b68dac3f283bf4e606f43532dde65c9d2c8f..3224240cc9ae96eda83d16e3b844d0dbe2f29419 100644 (file)
--- a/net.c
+++ b/net.c
@@ -1579,12 +1579,12 @@ int net_set_interfaceaddress_udp()
   switch (af) {
   case AF_INET:
     sa4 = (struct sockaddr_in *) name;
-    addrcpy((void*)&ssa4->sin_addr, (void *) &(sa4->sin_addr), AF_INET );
+    addrcpy((void*)&ssa4->sin_addr, (void *) &(sa4->sin_addr), af );
     break;
 #ifdef ENABLE_IPV6
   case AF_INET6:
     sa6 = (struct sockaddr_in6 *) name;
-    addrcpy((void*)&ssa6->sin6_addr, (void *) &(sa6->sin6_addr), AF_INET );
+    addrcpy((void*)&ssa6->sin6_addr, (void *) &(sa6->sin6_addr), af );
     break;
 #endif
   }