summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r--zebra/kernel_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index d17ffe8e..a27bebde 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -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; \
}