mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 05:14:54 +00:00
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* kernel_socket.c: (RTA_{ADDR,ATTR}_GET) fix mistake, NULL check should be on DEST argument
This commit is contained in:
parent
a1ac18c4d5
commit
ea6f82b979
@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
* (global) Extern and static'ification, with related fixups
|
* (global) Extern and static'ification, with related fixups
|
||||||
of declarations, ensuring files include their own headers, etc.
|
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
|
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>
|
2005-06-14 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ extern struct zebra_t zebrad;
|
|||||||
if ((RTMADDRS) & (RTA)) \
|
if ((RTMADDRS) & (RTA)) \
|
||||||
{ \
|
{ \
|
||||||
int len = SAROUNDUP ((PNT)); \
|
int len = SAROUNDUP ((PNT)); \
|
||||||
if ( ((RTA) != NULL) && \
|
if ( ((DEST) != NULL) && \
|
||||||
af_check (((struct sockaddr *)(PNT))->sa_family)) \
|
af_check (((struct sockaddr *)(PNT))->sa_family)) \
|
||||||
memcpy ((caddr_t)(DEST), (PNT), len); \
|
memcpy ((caddr_t)(DEST), (PNT), len); \
|
||||||
(PNT) += len; \
|
(PNT) += len; \
|
||||||
@ -90,7 +90,7 @@ extern struct zebra_t zebrad;
|
|||||||
if ((RTMADDRS) & (RTA)) \
|
if ((RTMADDRS) & (RTA)) \
|
||||||
{ \
|
{ \
|
||||||
int len = SAROUNDUP ((PNT)); \
|
int len = SAROUNDUP ((PNT)); \
|
||||||
if ( ((RTA) != NULL) ) \
|
if ( ((DEST) != NULL) ) \
|
||||||
memcpy ((caddr_t)(DEST), (PNT), len); \
|
memcpy ((caddr_t)(DEST), (PNT), len); \
|
||||||
(PNT) += len; \
|
(PNT) += len; \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user