summaryrefslogtreecommitdiff
path: root/src/radv.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2016-07-06 21:42:27 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2016-07-06 21:42:27 +0100
commitce7845bf5429bd2962c9b2e7d75e2659f3b5c1a8 (patch)
tree033e6c0d18b5a1ecc5c9daeb73667214970d2c4f /src/radv.c
parentd55f81f5fd53b1dfc2c4b3249b542f2d9679e236 (diff)
downloaddnsmasq-ce7845bf5429bd2962c9b2e7d75e2659f3b5c1a8.tar.gz
Check return of expand() always.
Diffstat (limited to 'src/radv.c')
-rw-r--r--src/radv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/radv.c b/src/radv.c
index 749b666..faa0f6d 100644
--- a/src/radv.c
+++ b/src/radv.c
@@ -262,7 +262,9 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad
parm.prio = calc_prio(ra_param);
save_counter(0);
- ra = expand(sizeof(struct ra_packet));
+
+ if (!(ra = expand(sizeof(struct ra_packet))))
+ return;
ra->type = ND_ROUTER_ADVERT;
ra->code = 0;