summaryrefslogtreecommitdiff
path: root/src/radv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radv.c')
-rw-r--r--src/radv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radv.c b/src/radv.c
index 3255904..6d6fa32 100644
--- a/src/radv.c
+++ b/src/radv.c
@@ -746,6 +746,8 @@ static int add_lla(int index, unsigned int type, char *mac, size_t maclen, void
add 7 to round up */
int len = (maclen + 9) >> 3;
unsigned char *p = expand(len << 3);
+ if (!p)
+ return 1;
memset(p, 0, len << 3);
*p++ = ICMP6_OPT_SOURCE_MAC;
*p++ = len;