]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-06-28 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Tue, 28 Jun 2005 17:20:26 +0000 (17:20 +0000)
committerpaul <paul>
Tue, 28 Jun 2005 17:20:26 +0000 (17:20 +0000)
* kernel_socket.c: (RTA_{ADDR,ATTR}_GET) fix mistake, NULL check
  should be on DEST argument

zebra/ChangeLog
zebra/kernel_socket.c

index f215266c46735bfc070ba8b2fac3bb5b80569589..374f8547c75c5b27d42e36cc9d84a5db89c082a8 100644 (file)
@@ -2,9 +2,10 @@
 
        * (global) Extern and static'ification, with related fixups
          of declarations, ensuring files include their own headers, etc.
-         if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in
+       * if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in
          list loop
-         
+       * kernel_socket.c: (RTA_{ADDR,ATTR}_GET) fix mistake, NULL check
+         should be on DEST argument
 
 2005-06-14 Paul Jakma <paul.jakma@sun.com>
 
index d17ffe8e6404e844aa75440f19a12e1ed6740f88..a27bebded86184a1c8a8d9a014b8da01da1ebb4a 100644 (file)
@@ -81,7 +81,7 @@ extern struct zebra_t zebrad;
   if ((RTMADDRS) & (RTA)) \
     { \
       int len = SAROUNDUP ((PNT)); \
-      if ( ((RTA) != NULL) && \
+      if ( ((DEST) != NULL) && \
            af_check (((struct sockaddr *)(PNT))->sa_family)) \
         memcpy ((caddr_t)(DEST), (PNT), len); \
       (PNT) += len; \
@@ -90,7 +90,7 @@ extern struct zebra_t zebrad;
   if ((RTMADDRS) & (RTA)) \
     { \
       int len = SAROUNDUP ((PNT)); \
-      if ( ((RTA) != NULL) ) \
+      if ( ((DEST) != NULL) ) \
         memcpy ((caddr_t)(DEST), (PNT), len); \
       (PNT) += len; \
     }